protected void saveToken(HttpServletRequest request) {
    HttpSession session = request.getSession();
    String token = generateToken(request);
    if (token != null) {
      session.setAttribute(ApplictionResources.getTransactionTokenKey(), token);
      request.setAttribute(ApplictionResources.getTransactionTokenKey(), token);
    }

  }