context.setContextPath(contextName);
// bind the jetty http handler with the context handler
context.setHandler(handler);
if (isSessionSupport) {
HashSessionManager sessionManager = new HashSessionManager();
SessionHandler sessionHandler = new SessionHandler(sessionManager);
HashSessionIdManager idManager = new HashSessionIdManager();
sessionManager.setIdManager(idManager);
context.addHandler(sessionHandler);
}
contexts.addHandler(context);
ServletContext sc = context.getServletContext();