final ServiceContainer container = ServiceContainer.Factory.create();
final int threads = Runtime.getRuntime().availableProcessors();
container.setExecutor(new ThreadPoolExecutor(threads, threads, Long.MAX_VALUE, TimeUnit.NANOSECONDS, new LinkedBlockingQueue<Runnable>()));
final ServerStartupListener serverStartupListener = new ServerStartupListener(createListenerCallback());
final ServerStartBatchBuilder batchBuilder = new ServerStartBatchBuilder(container.batchBuilder(), serverStartupListener);
batchBuilder.addListener(serverStartupListener);
// First-stage (boot) services
final ServiceActivatorContext serviceActivatorContext = new ServiceActivatorContext() {