question: protected void updateUserFields ( U user , U updatedUser , U currentUser ) { log . debug ( "Updating user fields for user: " + user ) ; if ( user . isRolesEditable ( ) ) { log . debug ( "Updating roles for user: " + user ) ; Set < String > roles = user . getRoles ( ) ; if ( updatedUser . isUnverified ( ) ) { if ( ! user . hasRole ( Role . UNVERIFIED ) ) { makeUnverified ( user ) ; LemonUtil . afterCommit ( null ) ; } } else { if ( user . hasRole ( Role . UNVERIFIED ) ) makeVerified ( user ) ; } if ( updatedUser . isAdmin ( ) ) roles . add ( Role . ADMIN ) ; else roles . remove ( Role . ADMIN ) ; if ( updatedUser . isBlocked ( ) ) roles . add ( Role . BLOCKED ) ; else roles . remove ( Role . BLOCKED ) ; } }
target:  Updates the fields of the users. Override this if you have more fields.