synchronized (messageListeners) {
toNotify = new ArrayList(messageListeners);
}
for (final Iterator i = toNotify.iterator(); i.hasNext();) {
final IIMMessageListener l = (IIMMessageListener) i.next();
l.handleMessageEvent(event);
}
}
protected void fireChatMessage(ID fromID, ID threadID, Type type,
String subject, String body, Map properties) {