// Hack to make jsr356 works. Pretty ugly.
DefaultAsyncSupportResolver resolver = new DefaultAsyncSupportResolver(framework.getAtmosphereConfig());
List<Class<? extends AsyncSupport>> l = resolver.detectWebSocketPresent(false, true);
if (l.size() == 0 && resolver.testClassExists(DefaultAsyncSupportResolver.JSR356_WEBSOCKET)) {
framework.setAsyncSupport(new JSR356AsyncSupport(new AtmosphereConfig(framework) {
public ServletContext getServletContext() {
return c;
}
public String getInitParameter(String name) {