if (!appInfo.webAppAlone) {
final Assembler assembler = SystemInstance.get().getComponent(Assembler.class);
final List<BeanContext> beanContexts = assembler.initEjbs(classLoader, appInfo, appContext, injections, new ArrayList<BeanContext>(), webAppInfo.moduleId);
appContext.getBeanContexts().addAll(beanContexts);
new CdiBuilder().build(appInfo, appContext, appContext.getBeanContexts(), webContext);
assembler.startEjbs(true, beanContexts);
}
final ServletContextEvent sce = new MockServletContextEvent();
servletContextEvents.put(webAppInfo, sce);