private void addUsers(User[] users,LocalConfiguration configuration){
  for (  User user : users) {
    configuration.addUser(user.createUser());
  }
}

private void addUsers ( User [ ] users , LocalConfiguration configuration ) { for ( User user : users ) { configuration . addUser ( user . createUser ( ) ) ; } }
add users to the configuration .
