String[] groups = backend.getAllGroups();
List<UserRepresentation> users = new ArrayList<UserRepresentation>();
Iterator iter = Roster.getJIDStatussen();
for (Iterator iterator = iter; iterator.hasNext();) {
NormalJIDStatus jidStatus = (NormalJIDStatus) iterator.next();
if (selectCurrentUsers) {
if (!chat.thereIsNoSuchUserYet(jidStatus.getJID())) {
users.add(new UserRepresentation(jidStatus));
}
} else {
if (chat.thereIsNoSuchUserYet(jidStatus.getJID())) {
users.add(new UserRepresentation(jidStatus));
}
}
}