code: public void buildConstantSummaries(XMLNode node, Content contentTree) throws DocletException {
          printedPackageHeaders.clear();
          Content summariesTree = writer.getConstantSummaries();
          for (PackageElement aPackage : configuration.packages) {
              if (hasConstantField(aPackage)) {
                  currentPackage = aPackage;
                  //Build the documentation for the current package.
                  buildChildren(node, summariesTree);
                  first = false;
              }
          }
          writer.addConstantSummaries(contentTree, summariesTree);
      }
docs: Build the summary for each documented package.
  
  @param node the XML element that specifies which components to document
  @param contentTree the tree to which the summaries will be added
  @throws DocletException if there is a problem while building the documentation