for (User user : fromUsers) {
fromUserJIDs.add(user.getJID());
}
try {
Packet result;
JID jid;
while (fromUserJIDs.size() > 0) {
if (monitor.isCanceled())
throw new LocalCancellationException();
// Wait up to [timeout] milliseconds for a result.
result = collector.nextResult(100);
if (result == null)
continue;
jid = new JID(result.getFrom());
if (!fromUserJIDs.remove(jid)) {
log.warn("Buddy list confirmation from unknown buddy: "
+ Utils.prefix(jid));
} else {
log.debug("Buddy list confirmation from: "