def add(resource)
      if !exists?(resource) && !filtered?(resource)
        @collection[resource.to_s] = ResourceWrapper.new(resource)
      end
    end
def add(resource)
      if !exists?(resource) && !filtered?(resource)
        @collection[resource.to_s] = ResourceWrapper.new(resource)
      end
    end
Add a resource to the resource collection. Only new resources are added
 and only resources that match the given filter are covered (which is *
 by default).

 @param [Chef::Resource] resource