HttpRequestHandlerRegistry reqistry = setupRegistry(engine);
handler.setHandlerResolver(reqistry);
// Provide an event logger
handler.setEventListener(new EventLogger());
IOEventDispatch ioEventDispatch = new DefaultServerIOEventDispatch(handler, parameters);
try {
ioReactor = new DefaultListeningIOReactor(2, parameters);
ioReactor.listen(new InetSocketAddress(this.getServiceConfig().getPort()));