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