if (stanza == null) throw new RuntimeException("cannot process NULL stanzas");
XMPPCoreStanza xmppStanza = XMPPCoreStanza.getWrapper(stanza);
if (xmppStanza == null) throw new RuntimeException("cannot process only: IQ, message or presence");
StanzaHandler stanzaHandler = handlers.get(xmppStanza);
if (stanzaHandler == null) {
unhandledStanza(stanza);
return;
}
ResponseStanzaContainer responseStanzaContainer = null;
try {
responseStanzaContainer = stanzaHandler.execute(stanza, serverRuntimeContext, false, sessionContext, sessionStateHolder);
} catch (ProtocolException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
if (responseStanzaContainer != null && responseStanzaContainer.getResponseStanza() != null) {