private void createNavigationMenu(int numberOfPages, int currentPage) throws IOException {
        Logger.getLogger(ReportGenerator.class.getName()).entering(ReportGenerator.class.getName(), "createNavigationMenu", new Object[] {numberOfPages, currentPage});
        if (numberOfPages==0) {
            return;
        }
        StringBuilder content = new StringBuilder();
        content = content.append(System.getProperty("line.separator")).append("    <table align=\"center\" id=\"navigation\">");
        content = content.append(System.getProperty("line.separator")).append("      <tbody>");
        content = content.append(System.getProperty("line.separator")).append("        <tr>");
        content = content.append(System.getProperty("line.separator")).append("          <td>");
        content = content.append(System.getProperty("line.separator")).append("            ");
        if (currentPage != 0) {
            if (currentPage == 1) {
                content = content.append("&nbsp;<a href=\"index.html\">").append(resourceBundle.getString("previousPage.text")).append("</a>");
            } else {
                content = content.append("&nbsp;<a href=\"page").append(currentPage - 1).append(".html\">").append(resourceBundle.getString("previousPage.text")).append("</a>");
            }
        }
        for (int i = 0; i <= numberOfPages; i++) {
            if (currentPage == i) {
                content = content.append("&nbsp;<u>").append(i).append("</u>");
            } else {
                if (i == 0) {
                    content = content.append("&nbsp;<a href=\"index.html\">").append(i).append("</a>");
                } else {
                    content = content.append("&nbsp;<a href=\"page").append(i).append(".html\">").append(i).append("</a>");
                }
            }
        }
        if (currentPage != numberOfPages) {
            content = content.append("&nbsp;<a href=\"page").append(currentPage + 1).append(".html\">").append(resourceBundle.getString("nextPage.text")).append("</a>");
        }
        content = content.append(System.getProperty("line.separator")).append("          </td>");
        content = content.append(System.getProperty("line.separator")).append("        </tr>");
        content = content.append(System.getProperty("line.separator")).append("      </tbody>");
        content = content.append(System.getProperty("line.separator")).append("    </table>");
        pageXWriter.write(content.toString());
        pageXWriter.newLine();
        Logger.getLogger(ReportGenerator.class.getName()).exiting(ReportGenerator.class.getName(), "createNavigationMenu");
    }