synchronized (presenceListeners) {
toNotify = new ArrayList(presenceListeners);
}
for (final Iterator i = toNotify.iterator(); i.hasNext();) {
final IPresenceListener l = (IPresenceListener) i.next();
l.handlePresence(fromID, presence);
}
}
private void updatePresence(XMPPID fromID, IPresence newPresence) {
final Collection rosterItems = roster.getItems();