synchronized (framework.asyncSupport) {
if (!framework.asyncSupport.getClass().equals(JBossWebCometSupport.class)
&& !framework.asyncSupport.getClass().equals(JBossWebSocketSupport.class)) {
AsyncSupport current = framework.asyncSupport;
logger.warn("JBossWebCometSupport is enabled, switching to it");
framework.asyncSupport = new JBossWebCometSupport(framework.config);
if (current instanceof AsynchronousProcessor) {
((AsynchronousProcessor) current).shutdown();
}
framework.asyncSupport.init(framework.config.getServletConfig());
}