List<ApplicationCategory> appCategories = prService.getApplicationCategories(remoteUser, applicationType);
ApplicationCategoryToJSONPlugin toJSON = new ApplicationCategoryToJSONPlugin();
StringBuilder value = new StringBuilder();
JSONService jsonService = new JSONService();
jsonService.register(ApplicationCategory.class, toJSON);
if (appCategories.size() < 1)
return value;
value.append("{\n").append(" applicationRegistry : {\n");