}
@Override
public FindUsersCommand.UsersInfo chooseUsersToBeAdded(List<User> foundNewUsers, String[] groups) {
FindUsersDialog dialog = new FindUsersDialog(foundNewUsers, groups);
dialog.show();
if (dialog.isOK()) {
Set<User> selectedUsers = dialog.getSelectedUsers();
return new FindUsersCommand.UsersInfo(selectedUsers.toArray(new User[selectedUsers.size()]), dialog.getGroup());
}
return new FindUsersCommand.UsersInfo();
}