final Collection svcs = MultiUserChat.getServiceNames(conn);
for (final Iterator svcsi = svcs.iterator(); svcsi.hasNext();) {
final String svc = (String) svcsi.next();
final Collection rooms = MultiUserChat.getHostedRooms(conn, svc);
for (final Iterator roomsi = rooms.iterator(); roomsi.hasNext();) {
final HostedRoom room = (HostedRoom) roomsi.next();
final ID roomID = createIDFromHostedRoom(room);
if (roomID != null)
result.add(roomID);
}
}