protected void addInterceptorToAllWrappers(AtmosphereInterceptor c) { c.configure(config); InvokationOrder.PRIORITY p = InvokationOrder.class.isAssignableFrom(c.getClass()) ? InvokationOrder.class.cast(c).priority() : InvokationOrder.AFTER_DEFAULT; logger.info("Installed AtmosphereInterceptor {} with priority {} ", c, p.name()); //need insert this new interceptor into all the existing handlers for (AtmosphereHandlerWrapper wrapper : atmosphereHandlers.values()) { addInterceptorToWrapper(wrapper, c); } }