* Also, we need to force Weld to use the TCCLSingletonProvider (Thread Context ClassLoader Singleton Provider)
* instead of the default IsolatedStaticSingletonProvider. Since Jetty uses Thread Context to determine
* classloaders for each context, we want the TCCLSingletonProvider to differentiate between contexts. There
* is no documentation on this but it is critical in an environment where multiple webapps share the bean manager
*/
SingletonProvider.initialize(new TCCLSingletonProvider());
new Resource(jetty, "WeldBeanManager", new Reference(
"javax.enterprise.inject.spi.BeanManager",
"org.jboss.weld.resources.ManagerObjectFactory",
null
));