code: private void writeLines(final HttpServletResponse response, final ArrayList<String> lines, final String header)
        throws IOException {
      LOG.log(Level.INFO, "HttpServerReefEventHandler writeLines is called");
  
      final PrintWriter writer = response.getWriter();
  
      writer.println("<h1>" + header + "</h1>");
  
      for (final String line : lines) {
        writer.println(line);
        writer.write("<br/>");
      }
      writer.write("<br/>");
    }
docs: Write lines in ArrayList to the response writer.
  @param response
  @param lines
  @param header
  @throws IOException