*
* @param request the servlet request; may not be null
* @return a list of available JCR repositories, as a {@link RestRepositories} instance.
*/
public RestRepositories getRepositories( HttpServletRequest request ) {
RestRepositories repositories = new RestRepositories();
for (String repositoryName : RepositoryManager.getJcrRepositoryNames()) {
addRepository(request, repositories, repositoryName);
}
return repositories;
}