def resolve(path, options = {})
name, wish, engine = find_provide(path)
node = (respond_to?(:ancestors) && respond_to?(:new)) ? self : self.class
action = Action.create(:node => node, :wish => wish, :engine => engine, :path => path, :options => options)
action.options.key?(:needs_method) || action.options[:needs_method] = node.needs_method?
if content_type = node.ancestral_trait["#{wish}_content_type"]
action.options = {:content_type => content_type}
end
node.update_method_arities
node.update_template_mappings
node.fill_action(action, name)
end