}
@Override
public void start(StartContext context) {
UndertowService service = this.service.getValue();
ContainerEventHandler eventHandler = this.eventHandler.getValue();
this.connector = new UndertowConnector(this.listener.getValue());
this.server = new UndertowServer(service, connector);
// Register ourselves as a listener to the container events
service.registerListener(this);
// Initialize mod_cluster and start it now
eventHandler.init(this.server);
eventHandler.start(this.server);
// Start the periodic STATUS thread
ThreadGroup group = new ThreadGroup(UndertowEventHandlerAdapter.class.getSimpleName());
ThreadFactory factory = new JBossThreadFactory(group, Boolean.FALSE, null, "%G - %t", null, null, AccessController.doPrivileged(GetAccessControlContextAction.getInstance()));
this.executor = Executors.newScheduledThreadPool(1, factory);