private void fireMessageEvent(ID fromID, String message) {
synchronized (messageListeners) {
for (int i = 0; i < messageListeners.size(); i++) {
((IIMMessageListener) messageListeners.get(i))
.handleMessageEvent(new ChatMessageEvent(fromID,
new ChatMessage(fromID, message)));
}
}
}