# File lib/openurl/context_object.rb, line 240
    def search_custom_entities(key, val)
      matches = []
      @custom.each do |cus|
        begin
          matches << @custom.index(cus) if cus.instance_variable_get('@'+key) == val                      
        rescue NameError
          next
        end
      end
      return matches
    end