code: public static void setUser(Object user)
      {
          HttpSession session = WebContextFactory.get().getSession(true);
          session.setAttribute(USER, user);
      }
docs: Accessor for the current user
  @param user The current user