public static void stopHttpServer(Server httpServer) throws Exception {
  httpServer.stop();
  httpServer.join();
}

public static void stopHttpServer ( Server httpServer ) throws Exception { httpServer . stop ( ) ; httpServer . join ( ) ; }
stops the given http server instance . this method does its best to guarantee that no threads will be left running following this method .
