stanza = XMPPCoreStanza.getWrapper(stanzaBuilder.build());
}
StanzaRelay stanzaRelay = serverRuntimeContext.getStanzaRelay();
try {
stanzaRelay.relay(stanza.getTo(), stanza, new ReturnErrorToSenderFailureStrategy(stanzaRelay));
} catch (Exception e) {
// TODO return error stanza
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
} else if (sessionContext != null) {