code: private Server setUpServer() {
          Server server = new Server(port);
          ResourceHandler handler = new ResourceHandler();
          handler.setDirectoriesListed(true);
          handler.setWelcomeFiles(new String[]{"index.html"});
          handler.setResourceBase(getReportDirectoryPath().toAbsolutePath().toString());
          HandlerList handlers = new HandlerList();
          handlers.setHandlers(new Handler[]{handler, new DefaultHandler()});
          server.setStopAtShutdown(true);
          server.setHandler(handlers);
          return server;
      }
docs: Set up server for report directory.