code: public void addPackageContent(Content contentTree, Content packageContentTree) {
          if (configuration.allowTag(HtmlTag.MAIN)) {
              packageContentTree.addContent(sectionTree);
              mainTree.addContent(packageContentTree);
              contentTree.addContent(mainTree);
          } else {
              contentTree.addContent(packageContentTree);
          }
      }
docs: {@inheritDoc}