code: public Content getSummaryTableHeader(List<String> header, String scope) {
          Content tr = new HtmlTree(HtmlTag.TR);
          final int size = header.size();
          Content tableHeader;
          if (size == 2) {
              tableHeader = new StringContent(header.get(0));
              tr.addContent(HtmlTree.TH(HtmlStyle.colFirst, scope, tableHeader));
              tableHeader = new StringContent(header.get(1));
              tr.addContent(HtmlTree.TH(HtmlStyle.colLast, scope, tableHeader));
              return tr;
          }
          for (int i = 0; i < size; i++) {
              tableHeader = new StringContent(header.get(i));
              if (i == 0)
                  tr.addContent(HtmlTree.TH(HtmlStyle.colFirst, scope, tableHeader));
              else if (i == 1)
                  tr.addContent(HtmlTree.TH(HtmlStyle.colSecond, scope, tableHeader));
              else if (i == (size - 1))
                  tr.addContent(HtmlTree.TH(HtmlStyle.colLast, scope, tableHeader));
              else
                  tr.addContent(HtmlTree.TH(scope, tableHeader));
          }
          return tr;
      }
docs: Get summary table header.
  
  @param header the header for the table
  @param scope the scope of the headers
  @return a content tree for the header