WebServer webServer = resolveWebServer(beanManager);
webServer.addServletContextAttribute(WeldServletLifecycle.BEAN_MANAGER_ATTRIBUTE_NAME, beanManager);
processInstances(beanManager, ServletDescriptor.class, webServer::addServlet);
processInstances(beanManager, FilterDescriptor.class, webServer::addFilter);
processInstances(beanManager, ServletContextAttributeProvider.class,
<BUG>s -> s.getAttributes().forEach(webServer::addServletContextAttribute));
webServer.start();</BUG>
this.webServer = webServer;
}
@PreDestroy

WebServer webServer = resolveWebServer(beanManager);
webServer.addServletContextAttribute(WeldServletLifecycle.BEAN_MANAGER_ATTRIBUTE_NAME, beanManager);
processInstances(beanManager, ServletDescriptor.class, webServer::addServlet);
processInstances(beanManager, FilterDescriptor.class, webServer::addFilter);
processInstances(beanManager, ServletContextAttributeProvider.class,
s -> s.getAttributes().forEach(webServer::addServletContextAttribute));
webServer.addServletContextAttribute(org.jboss.weld.Container.CONTEXT_ID_KEY, beanManager.getContextId());
webServer.start();
this.webServer = webServer;
}
@PreDestroy
