{
// write D2-related configuration to ZooKeeper
// all the configuration here are permanent, no need to re-write as long as ZooKeeper still has the data
// therefore in real case, do this "discovery" step separately
final HttpServer server = RestLiExampleBasicServer.createServer();
final ZooKeeperConnectionManager zkConn = createZkConn();
startServer(server, zkConn);
System.out.println("Example server with D2 is running with URL " + RestLiExampleBasicServer.getServerUrl() + ". Press any key to stop server.");