/** * @param request * @return if user is authorized redirect to operations page else redirect to index */ public String opperations(HttpServletRequest request) { try { this.currentCard = (Card) request.getSession().getAttribute("Card"); this.transferCards = utils.getTransfer(cardService.getCards(), currentCard.getId()); } catch (Exception e) { return "redirect:/"; } return "redirect:bank/operations"; }