# File lib/puppet/util/instance_loader.rb, line 64
64:     def loaded_instance(type, name)
65:         name = symbolize(name)
66:         return nil unless instances = instance_hash(type)
67:         unless instances.include? name
68:             if instance_loader(type).load(name)
69:                 unless instances.include? name
70:                     Puppet.warning(
71:                         "Loaded %s file for %s but %s was not defined" % [type, name, type]
72:                     )
73:                     return nil
74:                 end
75:             else
76:                 return nil
77:             end
78:         end
79:         instances[name]
80:     end