class BoshBackedSessionContext extends AbstractSessionContext implements StanzaWriter {

    private void requestExpired(final AsyncContext context) {
        final BoshRequest req =
                (BoshRequest) context.getRequest().getAttribute(BOSH_REQUEST_ATTRIBUTE);
        if (req == null) {
            LOGGER.warn("SID = " + getSessionId() + " - Continuation expired without having "
                    + "an associated request!");
            return;
        }
        LOGGER.debug("SID = " + getSessionId() + " - rid = {} - BOSH request expired", req.getRid());
        while (!requestsWindow.isEmpty() && requestsWindow.firstRid() <= req.getRid()) {
            writeBoshResponse(BoshStanzaUtils.EMPTY_BOSH_RESPONSE);
        }
    }

    public  BoshBackedSessionContext(ServerRuntimeContext serverRuntimeContext, StanzaProcessor stanzaProcessor, BoshHandler boshHandler, InactivityChecker inactivityChecker);

}