code: public Collection<? extends RepositoryResource> getAllResources() throws RepositoryBackendException {
          Collection<RepositoryResource> resources = cycleThroughRepositories(new RepositoryInvoker<RepositoryResource>() {
              @SuppressWarnings("unchecked")
              @Override
              public Collection<RepositoryResource> performActionOnRepository(RepositoryConnection connection) throws RepositoryBackendException {
                  return (Collection<RepositoryResource>) connection.getAllResources();
              }
          });
          return resources;
      }
docs: This method gets all the resources in this list of repositories. If a resource is found in multiple repositories
  then the only the first one found will be returned (the search order is the order of repositories added to
  this list).
  
  @return A {@link Collection} of {@link RepositoryResourceImpl} object
  @throws RepositoryBackendException