// Setup default servlet to serve static files
context.addServlet(DefaultServlet.class, "/");
// Setup CometD servlet
String cometdURLMapping = cometdServletPath + "/*";
cometdServlet = new CometDServlet();
ServletHolder cometdServletHolder = new ServletHolder(cometdServlet);
for (Map.Entry<String, String> entry : options.entrySet())
cometdServletHolder.setInitParameter(entry.getKey(), entry.getValue());
cometdServletHolder.setInitParameter("timeout", String.valueOf(metaConnectPeriod));
cometdServletHolder.setInitParameter("ws.cometdURLMapping", cometdURLMapping);