String groupId = uiSelectUserForm.getSelectedGroup();
uiSelectUserForm.setSelectedGroup(groupId);
OrganizationService service = uiSelectUserForm.getApplicationComponent(OrganizationService.class);
if (groupId != null && groupId.trim().length() != 0)
{
PageList users = uiSelectUserForm.removeDuplicate(service.getUserHandler().findUsersByGroup(groupId));
uiSelectUserForm.uiIterator_.setPageList(users);
}
else
{
uiSelectUserForm.uiIterator_.setPageList(service.getUserHandler().findUsers(new Query()));