}
protected void handleXMPPMessage(Packet aPacket) throws IOException {
if (!handleAsExtension(aPacket)) {
if (aPacket instanceof IQ) {
deliverEvent(new IQEvent((IQ) aPacket));
} else if (aPacket instanceof Message) {
deliverEvent(new MessageEvent((Message) aPacket));
} else if (aPacket instanceof Presence) {
deliverEvent(new PresenceEvent((Presence) aPacket));
} else {