docs: public Collection<? extends RepositoryResource> findResources(final String searchTerm,
                                                                    final Collection<ProductDefinition> productDefinitions,
                                                                    final Collection<ResourceType> types,
                                                                    final Visibility visibility) throws RepositoryBackendException {
          return cycleThroughRepositories(new RepositoryInvoker<RepositoryResource>() {
              @SuppressWarnings("unchecked")
              @Override
              public Collection<RepositoryResource> performActionOnRepository(RepositoryConnection connection) throws RepositoryBackendException {
                  return (Collection<RepositoryResource>) connection.findResources(searchTerm, productDefinitions, types, visibility);
              }
          });
      }