code: public void buildProfileDoc(XMLNode node, Content contentTree) throws Exception {
          contentTree = profileWriter.getProfileHeader(profile.name);
          buildChildren(node, contentTree);
          profileWriter.addProfileFooter(contentTree);
          profileWriter.printDocument(contentTree);
          profileWriter.close();
          Util.copyDocFiles(configuration, DocPaths.profileSummary(profile.name));
      }
docs: Build the profile documentation.
  
  @param node the XML element that specifies which components to document
  @param contentTree the content tree to which the documentation will be added