public void setStatus(Status status) {
        if (status == Status.CLOSED && this.streamManager.getResume()) {
            Log.debug( "Suppressing close for session with address {} and streamID {}.", this.address, this.streamID );
            return;
        }
        this.status = status;
    }
Set the new status of this session. Setting a status may trigger
certain events to occur (setting a closed status will close this
session).

@param status The new status code for this session
xmppserver/src/main/java/org/jivesoftware/openfire/session/LocalSession.java