@RequestMapping(value = "/refresh", method = RequestMethod.GET) public String refresh(HttpServletRequest request, Model uiModel) { User user = (User) request.getSession().getAttribute(Constants.KME_USER_KEY); try { calendarEventOAuthService.reloadPersonalCache(user.getUserId()); } catch (PageLevelException pageLevelException) { uiModel.addAttribute("message", pageLevelException.getMessage()); return "calendar/message"; } uiModel.addAttribute("message", "Your calendar has been refreshed."); return "calendar/message"; }