132133134135136137138139140141142
SessionHandler sessionHandler = new SessionHandler(); context.setSessionHandler(sessionHandler); if (context.isStarted()) { // restart the context context.stop(); context.start(); } } }