code: private void writeTop() throws IOException {
          // setup output HTML file
          File outputFile = new File(outputDirectory, createFilename(currentPageNumber));
          writer = new BufferedWriter(new OutputStreamWriter(
                  new FileOutputStream(outputFile, false), Charset.forName(encoding)));
  
          // write header
          Map<String,Object> map = new HashMap<String,Object>();
          map.put("pageTitle", pageTitle);
          if(pageHeader != null && pageHeader.length() > 0) {
              map.put("header", "<h1>" + pageHeader + "</h1>");
          } else {
              map.put("header","");
          }
          if(pageDescription != null && pageDescription.length() > 0) {
              map.put("description", "<p>" + pageDescription + "</p>");
          } else {
              map.put("description", "");
          }
  
          String template = Template.readResourceAsStream("com/btaz/util/templates/html-table-header.ftl");
          String output = Template.transform(template, map);
          writer.write(output);
      }
docs: Write the top part of the HTML document
  @throws IOException exception