protected List<String> listUserNames() throws UsersRepositoryException {
  Collection<User> users=getAllUsers();
  List<String> userNames=new ArrayList<String>(users.size());
  for (  User user : users) {
    userNames.add(user.getUserName());
  }
  users.clear();
  return userNames;
}

protected List < String > listUserNames ( ) throws UsersRepositoryException { Collection < User > users = getAllUsers ( ) ; List < String > userNames = new ArrayList < String > ( users . size ( ) ) ; for ( User user : users ) { userNames . add ( user . getUserName ( ) ) ; } users . clear ( ) ; return userNames ; }
produces the complete list of user names , with correct case .
