HttpSession session = (HttpSession) ActionContext.getContext().get(ActionContext.SESSION); User chatUser = (User) session.getAttribute(CHAT_USER_SESSION_KEY); if (chatUser == null) { _log.debug("Chat user not logged in"); return Action.LOGIN; } return invocation.invoke();