void migrateUser ( Node oldUserNode ) throws Exception { String userName = oldUserNode . getName ( ) ; if ( findUserByName ( userName , UserStatus . ANY ) != null ) { removeUser ( userName , false ) ; } UserImpl user = readUser ( oldUserNode ) ; createUser ( user , false ) ; }
Method for user migration .