return Thread.currentThread().getContextClassLoader();
}
};
ServletDeployment deployment = new ServletDeployment(sce.getServletContext(), bootstrap);
try {
deployment.getWebAppBeanDeploymentArchive().getServices()
.add(ResourceInjectionServices.class, new ServletResourceInjectionServices() {});
} catch (NoClassDefFoundError e) {
// Support GAE
log.warn("@Resource injection not available in simple beans");
}
bootstrap.startContainer(Environments.SERVLET, deployment).startInitialization();
manager = bootstrap.getManager(deployment.getWebAppBeanDeploymentArchive());
boolean tomcat = true;
boolean tomcat7 = false;
try {
Reflections.classForName("org.apache.AnnotationProcessor");