code: public void buildPackageDoc(XMLNode node, Content contentTree) throws Exception {
          contentTree = packageWriter.getPackageHeader(Util.getPackageName(packageDoc));
          buildChildren(node, contentTree);
          packageWriter.addPackageFooter(contentTree);
          packageWriter.printDocument(contentTree);
          packageWriter.close();
          Util.copyDocFiles(configuration, packageDoc);
      }
docs: Build the package documentation.
  
  @param node the XML element that specifies which components to document
  @param contentTree the content tree to which the documentation will be added