throw new IllegalStateException("unsupported state for responding with stream opener");
}
StanzaBuilder stanzaBuilder = getStreamOpener(forClient, from, sessionContext.getXMLLang(), version, sessionContext.getSessionId(), innerFeatureStanza);
return stanzaBuilder.build();
}
public StanzaBuilder getStreamOpener(boolean forClient, Entity from, String xmlLang, XMPPVersion version, Stanza innerStanza) {
return getStreamOpener(forClient, from, xmlLang, version, null, innerStanza);
}