private void resaveParamsRegistrUser(SessionRequestContent request) {
        User currUser = (User) request.getSessionAttribute(JSP_CURRENT_USER);
        if (currUser == null) {
            currUser = new User();
            currUser.setRole(new Role());
        }
        currUser.setLogin(request.getParameter(JSP_USER_LOGIN));
        currUser.setPhone(request.getParameter(JSP_USER_PHONE));
        currUser.setEmail(request.getParameter(JSP_USER_EMAIL));
        Locale locale = (Locale)(request.getSessionAttribute(JSP_LOCALE));
        currUser.setLanguage(locale.getLanguage());
        request.setSessionAttribute(JSP_CURRENT_USER, currUser);
    }