if (groups.isEmpty()) {
out.println( "No groups found." );
}
else {
for (DxIterator it = groups.iterator(); it.next() != null;) {
Group group = (Group)it.object();
out.println( "group name: " + group.name() );
out.println( " id: " + group.id() );
out.println( " user ID count: " + group.usersCount() );
DxIterator it2 = group.userIDs().iterator();
int c = 1;
String line = " user IDs: ";
while (it2.next() != null) {
line += (c > 1 ? ", " : "");
line += it2.object().toString();