def retrieve_resource
    resource = retrieve
    resource = Resource.new(self.class, title, :parameters => resource) if resource.is_a? Hash
    resource
  end
def retrieve_resource
    resource = retrieve
    resource = Resource.new(self.class, title, :parameters => resource) if resource.is_a? Hash
    resource
  end
Retrieve the current state of the system as a Puppet::Resource. For
 the base Puppet::Type this does the same thing as #retrieve, but
 specific types are free to implement #retrieve as returning a hash,
 and this will call #retrieve and convert the hash to a resource.
 This is used when determining when syncing a resource.

 @return [Puppet::Resource] A resource representing the current state
   of the system.

 @api private