class AcmLoginSuccessOperations {

    protected String addAcmUserToSession(HttpServletRequest request, Authentication authentication)
    {
        String userId = authentication.getName();

        AcmUser user = getUserDao().findByUserId(userId);

        HttpSession session = request.getSession(true);

        session.setAttribute("acm_user", user);

        return user.getUserId();

    }

}