public void activate()
    {
        Log.trace("Session for '{}' to CSI 'active'", session.getAddress());
        active = true;

        // If there are delayed stanzas, cause them to be delivered by rescheduling the last one.
        if (!queue.isEmpty()) {
            try {
                session.deliver(queue.pollLast());
            } catch (UnauthorizedException e) {
                Log.error("Unexpected exception while activating CSI.", e);
            }
        }
    }
Switch to the client state of 'active'.
xmppserver/src/main/java/org/jivesoftware/openfire/csi/CsiManager.java