code: protected void addProfilesList(Profiles profiles, String text,
              String tableSummary, Content body) {
          Content heading = HtmlTree.HEADING(HtmlConstants.PROFILE_HEADING, true,
                  profilesLabel);
          Content div = HtmlTree.DIV(HtmlStyle.indexContainer, heading);
          HtmlTree ul = new HtmlTree(HtmlTag.UL);
          ul.setTitle(profilesLabel);
          String profileName;
          for (int i = 1; i < profiles.getProfileCount(); i++) {
              profileName = (Profile.lookup(i)).name;
              // If the profile has valid packages to be documented, add it to the
              // left-frame generated for profile index.
              if (configuration.shouldDocumentProfile(profileName))
                  ul.addContent(getProfile(profileName));
          }
          div.addContent(ul);
          body.addContent(div);
      }
docs: {@inheritDoc}