import java.util.function.Consumer;
@ApplicationScoped
public class StartWebServer {
private WebServer webServer;
private final Logger logger = LoggerFactory.getLogger(StartWebServer.class);
<BUG>public void init(@Observes @Initialized(ApplicationScoped.class) Object obj, BeanManager beanManager) {
</BUG>
WebServer webServer = resolveWebServer(beanManager);
webServer.addServletContextAttribute(WeldServletLifecycle.BEAN_MANAGER_ATTRIBUTE_NAME, beanManager);
processInstances(beanManager, ServletDescriptor.class, webServer::addServlet);

import java.util.function.Consumer;
@ApplicationScoped
public class StartWebServer {
private WebServer webServer;
private final Logger logger = LoggerFactory.getLogger(StartWebServer.class);
public void init(@Observes @Initialized(ApplicationScoped.class) Object obj, BeanManagerImpl beanManager) {
WebServer webServer = resolveWebServer(beanManager);
webServer.addServletContextAttribute(WeldServletLifecycle.BEAN_MANAGER_ATTRIBUTE_NAME, beanManager);
processInstances(beanManager, ServletDescriptor.class, webServer::addServlet);
