final Engine engine = new EngineBuilder()
.setTaskExecutor(scheduler)
.setTimerScheduler(scheduler)
.build();
final RestLiServer restServer = new RestLiServer(config, new PrototypeResourceFactory(), engine);
final TransportDispatcher dispatcher = new DelegatingTransportDispatcher(restServer);
System.err.println("Netty threadPoolSize: " + threadPoolSize);
_server = new HttpNettyServerFactory(FilterChains.empty()).createServer(_port, threadPoolSize, dispatcher);
}