cometServletHolder.setInitParameter("timeout", String.valueOf(longPollingPeriod));
cometServletHolder.setInitParameter("loglevel","2");
context.addServlet(cometServletHolder, cometServletPath +"/*");
// Setup bayeux listener
context.addEventListener(new BayeuxServicesListener());
customizeContext(context);
server.start();
port = connector.getLocalPort();