code: private void performAdjustCookies(HttpServletRequest request, HttpServletResponse response) throws Exception {
  
  		boolean loggedIn = false;
  		User user = null;
  		try {
  			Cookie cookie = getCookieFromRequest(request);
  			if( null != cookie ) {
  				user = CookieAuthentication.verifyCookieString(userRepository, cookie.getValue());
  				loggedIn = true;
  			}
  		} catch(Exception e) {
  			// Ignore
  		}
  		
  		if( null == user ) {
  			user = userRepository.getDefaultUser();
  		}
  		
  		acceptRequest(response, loggedIn, user);
  	}
docs: Adjusts the information cookie based on the authentication token
  @param request
  @param response
  @throws ServletException
  @throws IOException