protected boolean detectSupportedFramework(ServletConfig sc) {
Injector injector = (Injector) config.getServletContext().getAttribute(Injector.class.getName());
GuiceContainer guiceServlet = injector.getInstance(GuiceContainer.class);
setUseStreamForFlushingComments(false);
ReflectorServletProcessor rsp = new ReflectorServletProcessor();
setDefaultBroadcasterClassName(JERSEY_BROADCASTER);
setUseStreamForFlushingComments(true);
rsp.setServlet(guiceServlet);
rsp.setFilterClassName(GUICE_FILTER);
getAtmosphereConfig().setSupportSession(false);
String mapping = sc.getInitParameter(PROPERTY_SERVLET_MAPPING);
if (mapping == null) {
mapping = "/*";