@Override
    public void process(Packet packet) {
        // Check that the requested packet can be processed
        if (canDeliver(packet)) {
            // Perform the actual processing of the packet. This usually implies sending
            // the packet to the entity
            try {
                // Invoke the interceptors before we send the packet
                InterceptorManager.getInstance().invokeInterceptors(packet, this, false, false);
                deliver(packet);
                // Invoke the interceptors after we have sent the packet
                InterceptorManager.getInstance().invokeInterceptors(packet, this, false, true);
            }
            catch (PacketRejectedException e) {
                // An interceptor rejected the packet so do nothing
                Log.trace("Packet rejected by interceptor: {}", packet, e);
            }
            catch (Exception e) {
                Log.error(LocaleUtils.getLocalizedString("admin.error"), e);
            }
        } else {
            Log.debug("Unable to deliver stanza: {}", packet);
        }
    }
Get XEP-0198 Stream manager for session
@return The StreamManager for the session.
xmppserver/src/main/java/org/jivesoftware/openfire/session/LocalSession.java