member.setContinuation(null);
    private void doGetEvents(HttpServletRequest request, AjaxResponse response)    {        HttpSession session = request.getSession(true);        String id = session.getId();        long timeoutMS = 10000L; // TODO configure.                Member member=null;        synchronized (mutex)        {            member = (Member)chatroom.get(id);        }        boolean alerts=false;        if (member!=null)        {            // Get an existing Continuation or create a new one if there are no events.            if (!member.hasEvents())            {                Continuation continuation = ContinuationSupport.getContinuation(request, mutex);                member.setContinuation(continuation);                continuation.suspend(timeoutMS);            }                        member.setContinuation(null);            alerts=member.sendEvents(response);                        if (alerts)                sendMembers(response);                        // Signal for a new poll            response.objectResponse("poll", "<ok/>");        }    }