sessionServlet.getSession().getExternalizeManager().setResponse(response);
    public final SessionServlet getSessionServlet(HttpServletRequest request,                                                  HttpServletResponse response,                                                  boolean createSessionServlet)        throws ServletException     {        HttpSession httpSession = request.getSession(true);        // it should be enough to synchronize on the http session object...        synchronized ( httpSession ) {            SessionServlet sessionServlet = null;            if (httpSession != null) {                sessionServlet = (SessionServlet)httpSession.getAttribute(lookupName);            }            /*             * we are only interested in a new session, if the response is             * not null. If it is null, then we just called getSessionServlet()             * for lookup purposes and are satisfied, if we don't get anything.             */            if ( sessionServlet == null && createSessionServlet ) {                logger.info("no session servlet, create new one");                sessionServlet = newSession(request, response);                httpSession.setAttribute(lookupName, sessionServlet);            }            if ( logger.isLoggable(Level.FINER) ) {                logger.finer("session id " + request.getRequestedSessionId());                logger.finer("session from cookie " + request.isRequestedSessionIdFromCookie());                logger.finer("session from url " + request.isRequestedSessionIdFromURL());                logger.finer("session valid " + request.isRequestedSessionIdValid());                logger.finer("session created at " +                              new java.util.Date(httpSession.getCreationTime()));                logger.finer("session httpsession id " + httpSession.getId());                logger.finer("session httpsession new " + httpSession.isNew());                logger.finer("session last accessed at " +                              new java.util.Date(httpSession.getLastAccessedTime()));                logger.finer("session max inactive interval " +                              httpSession.getMaxInactiveInterval());                logger.finer("session contains wings session " +                              (httpSession.getAttribute(lookupName)!=null));            }            return sessionServlet;        }    }