code: @Override
      public RestRepositories getRepositories(Request request) {
          RestRepositories repositories = new RestRepositories();
          for (String repositoryName : getRepositoryManager().getJcrRepositoryNames()) {
              addRepository(request, repositories, repositoryName);
          }
          return repositories;
      }
docs: Returns the list of JCR repositories available on this server
  
  @param request the servlet request; may not be null
  @return a list of available JCR repositories, as a {@link org.modeshape.web.jcr.rest.model.RestRepositories} instance.