final ID threadID = createThreadID(msg.getThread());
msg = filterMessageType(msg);
if (msg != null) {
if (msg.getExtension("composing", //$NON-NLS-1$
"http://jabber.org/protocol/chatstates") != null) { //$NON-NLS-1$
chatManager.fireTypingMessage(fromID, new TypingMessage(fromID,
true, body));
} else if (msg.getExtension("paused", //$NON-NLS-1$
"http://jabber.org/protocol/chatstates") != null) { //$NON-NLS-1$
chatManager.fireTypingMessage(fromID, new TypingMessage(fromID,
false, body));
} else {
final Iterator xhtmlbodies = evt.getXHTMLBodies();
if (xhtmlbodies != null) {
final List xhtmlbodylist = new ArrayList();