public String loadDetailPage(HttpServletRequest request, Model model, @PathVariable Long id, UserAgentInfo userAgentInfo) {
checkRequiredEntity(applicationService, id);
User user = userService.getUserFromSecurityContext();
Application application = applicationService.get(id);
ApplicationModel applicationModel = applicationService.createApplicationModel(application, true);
if (applicationModel != null) {
applicationModel.setCanUserEdit(userService.canUserEditApplication(user, application));
}
model.addAttribute("selectedApplication", applicationModel);
model.addAttribute("applicationType", applicationModel.getApplicationType().name());
model.addAttribute("deviceType", userAgentInfo.getApplicationType());
boolean iosDetected = false;
if (userAgentInfo.detectIos()) {