code: @SuppressWarnings("unchecked")
      public Collection<EsaResource> findMatchingEsas(String searchString,
                                                      ProductDefinition definition,
                                                      Visibility visible) throws RepositoryException {
          Collection<? extends RepositoryResource> resources = findResources(searchString, Collections.singleton(definition), Collections.singleton(ResourceType.FEATURE), visible);
          return (Collection<EsaResource>) resources;
      }
docs: Find the features that match the supplied search string, ProductDefinition and Visibility
  
  @param searchString
  @param definition
  @param visible
  @return a collection of matching feature resources
  @throws RepositoryException