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) {
Stanza responseStanza = responseStanzaContainer.getResponseStanza();
try {
IgnoreFailureStrategy failureStrategy = new IgnoreFailureStrategy(); // TODO call back MUC module
serverRuntimeContext.getStanzaRelay().relay(responseStanza.getTo(), responseStanza, failureStrategy);
} catch (DeliveryException e) {
throw new RuntimeException(e);