final SocketAddress addr = new InetSocketAddress(port);
ioReactor = new DefaultListeningIOReactor(nbThreads, threadFactory, params);
final IOEventDispatch ioEventDispatch;
if ("https".equals(protocol)) {
ioEventDispatch = new SSLServerIOEventDispatch(serviceHandler, sslContext, params);
} else {
ioEventDispatch = new DefaultServerIOEventDispatch(serviceHandler, params);
}
runner = new Thread() {
public void run() {