}
services.put(ContextsService.class, new CdiAppContextsService(true));
services.put(ResourceInjectionService.class, new CdiResourceInjectionService());
services.put(ScannerService.class, new CdiScanner());
WebBeansContext webBeansContext = new WebBeansContext(services, properties);
//must be last since it copies stuff
OpenEJBLifecycle lifecycle = new OpenEJBLifecycle(webBeansContext);
webBeansContext.registerService(ContainerLifecycle.class, lifecycle);
WebBeansContext oldContext = GeronimoSingletonService.contextEntered(webBeansContext);
try {
//from OWB's WebBeansConfigurationListener
try {
if (startup == null) {