if (!(e.getMessage() instanceof Stanza)) {
ctx.sendUpstream(e);
return;
}
final Stanza stanza = (Stanza) e.getMessage();
if (stanza instanceof Message) {
callback.receivedMessage((Message) stanza);
} else if (stanza instanceof Presence) {
callback.receivedPresence((Presence) stanza);
} else if (stanza instanceof IQ) {