saveMessage(request, getText("userProfile.cookieLogin"));
saveMessage(request, getText("userProfile.cookieLogin", request.getLocale()));
    protected Object formBackingObject(HttpServletRequest request)    throws Exception {        String username = request.getParameter("username");        if (request.getSession().getAttribute("cookieLogin") != null) {            saveMessage(request, getText("userProfile.cookieLogin"));        }        User user = null;        if (request.getRequestURI().indexOf("editProfile") > -1) {            user = mgr.getUser(getUser(request).getUsername());        } else if (!StringUtils.isBlank(username) &&                       !"".equals(request.getParameter("version"))) {            user = mgr.getUser(username);        } else {            user = new User();            user.addRole(new Role(Constants.USER_ROLE));        }        user.setConfirmPassword(user.getPassword());        return user;    }