RepositoryInfo ri = service.getRepositoryInfo(repositoryId, null);
String repositoryUrl = BrowserBindingUtils.compileRepositoryUrl(request, ri.getId()).toString();
String rootUrl = BrowserBindingUtils.compileRootUrl(request, ri.getId()).toString();
JSONObject result = new JSONObject();
result.put(ri.getId(), JSONConverter.convert(ri, repositoryUrl, rootUrl));
response.setStatus(HttpServletResponse.SC_OK);
BrowserBindingUtils.writeJSON(result, request, response);
}