public void importUsersFromJames23(String defaultPassword) throws MessagingException, UsersRepositoryException, DomainListException {
  Iterator<String> j23uIt=james23UsersRepository.list();
  while (j23uIt.hasNext()) {
    String userName23=j23uIt.next();
    String userName30=convert23UserTo30(userName23);
    james30UsersRepository.addUser(userName30,defaultPassword);
    log.info("New user is copied from 2.3 to 3.0 with username=" + userName30);
  }
}

public void importUsersFromJames23 ( String defaultPassword ) throws MessagingException , UsersRepositoryException , DomainListException { Iterator < String > j23uIt = james23UsersRepository . list ( ) ; while ( j23uIt . hasNext ( ) ) { String userName23 = j23uIt . next ( ) ; String userName30 = convert23UserTo30 ( userName23 ) ; james30UsersRepository . addUser ( userName30 , defaultPassword ) ; log . info ( "New user is copied from 2.3 to 3.0 with username=" + userName30 ) ; } }
import 2 . 3 users to 3 . 0 users ( taking virtualdomains into account )
