code: protected void addProfilePackagesIndexContents(Profiles profiles, String text,
              String tableSummary, Content body, String profileName) {
          HtmlTree div = new HtmlTree(HtmlTag.DIV);
          div.addStyle(HtmlStyle.indexHeader);
          addAllClassesLink(div);
          addAllPackagesLink(div);
          addAllProfilesLink(div);
          body.addContent(div);
          addProfilePackagesList(profiles, text, tableSummary, body, profileName);
      }
docs: Adds profile packages index contents. Call appropriate methods from
  the sub-classes. Adds it to the body HtmlTree
  
  @param profiles profiles to be documented
  @param text string which will be used as the heading
  @param tableSummary summary for the table
  @param body the document tree to which the index contents will be added
  @param profileName the name of the profile being documented