final long guestId = AuthHelper.getGuestId();
try {
final List<Application> applications = partnerAppsService.getApplications(guestId);
List<ApplicationModel> apps = new ArrayList<ApplicationModel>();
for (Application application : applications) {
ApplicationModel app = new ApplicationModel(application);
apps.add(app);
}
final String json = mapper.writeValueAsString(apps);
return Response.ok(json).build();
}