public void storeLoggedAccountAndDefaultProject(
     GPAccount account, Long projectID, HttpServletRequest httpServletRequest) {
   HttpSession session = httpServletRequest.getSession();
   // TODO: Set the right time in seconds before session interrupt
   session.setMaxInactiveInterval(SESSIONE_EXPIRATION);
   session.setAttribute(SessionProperty.LOGGED_ACCOUNT.toString(), account);
   session.setAttribute(SessionProperty.DEFAULT_PROJECT.toString(), projectID);
 }
 public GPAccount getLoggedAccount(HttpServletRequest httpServletRequest) throws GPSessionTimeout {
   GPAccount account = null;
   HttpSession session = httpServletRequest.getSession();
   Object accountObj = session.getAttribute(SessionProperty.LOGGED_ACCOUNT.toString());
   if (accountObj != null && accountObj instanceof GPAccount) {
     account = (GPAccount) accountObj;
   } else {
     System.out.println("\n*** Session Account null ***");
     throw new GPSessionTimeout("Session Timeout");
   }
   return account;
 }