long idleTimeout = getOption(IDLE_TIMEOUT_OPTION, policy.getIdleTimeout());
policy.setIdleTimeout((int)idleTimeout);
for (String mapping : normalizeURLMapping(cometdURLMapping))
{
wsFilter.addMapping(new ServletPathSpec(mapping), new WebSocketCreator()
{
@Override
public Object createWebSocket(ServletUpgradeRequest request, ServletUpgradeResponse response)
{
String origin = request.getHeader("Origin");