docs: public static void startHttpServerAndRegisterAll(int port) throws IOException {
      synchronized (monitor) {
        checkState(server == null, "The HttpServer is already started.");
        server = HttpServer.create(new InetSocketAddress(port), BACKLOG);
        ZPageHandlers.registerAllToHttpServer(server);
        server.start();
        logger.fine("HttpServer started on address " + server.getAddress().toString());
      }
  
      // This does not need to be mutex protected because it is guaranteed that only one thread will
      // get ever here.
      Runtime.getRuntime()
          .addShutdownHook(
              new Thread() {
                @Override
                public void run() {
                  // Use stderr here since the logger may have been reset by its JVM shutdown hook.
                  logger.fine("*** Shutting down gRPC server (JVM shutting down)");
                  ZPageHandlers.stop();
                  logger.fine("*** Server shut down");
                }
              });
    }