code: private void writeBottom(boolean hasNext) throws IOException {
          String template = Template.readResourceAsStream("com/btaz/util/templates/html-table-footer.ftl");
          Map<String,Object> map = new HashMap<String,Object>();
          String prev = " ";
          String next = "";
          if(currentPageNumber > 1) {
              prev = "<a href=\"" + createFilename(1) + "\">First</a> &nbsp; "
              + "<a href=\"" + createFilename(currentPageNumber-1) + "\">Previous</a> &nbsp; ";
          }
          if(hasNext) {
              next = "<a href=\"" + createFilename(currentPageNumber+1) + "\">Next</a>";
          }
          map.put("pageNavigation", prev + next);
          template = Template.transform(template, map);
          writer.write(template);
          writer.close();
          writer = null;
      }
docs: Write bottom part of the HTML page
  @param hasNext has next, true if there's supposed to be another page following this one