try {
size = repositoryCon.size(contexts);
}
catch (RepositoryException e) {
throw new ServerHTTPException("Repository error: " + e.getMessage(), e);
}
Map<String, Object> model = new HashMap<String, Object>();
model.put(SimpleResponseView.CONTENT_KEY, String.valueOf(size));
return new ModelAndView(SimpleResponseView.getInstance(), model);