code: public static void generate(ConfigurationImpl configuration, String profileName) {
          ProfilePackageIndexFrameWriter profpackgen;
          DocPath filename = DocPaths.profileFrame(profileName);
          try {
              profpackgen = new ProfilePackageIndexFrameWriter(configuration, filename);
              profpackgen.buildProfilePackagesIndexFile("doclet.Window_Overview", false, profileName);
              profpackgen.close();
          } catch (IOException exc) {
              configuration.standardmessage.error(
                          "doclet.exception_encountered",
                          exc.toString(), filename);
              throw new DocletAbortException(exc);
          }
      }
docs: Generate the profile package index file.
  @throws DocletAbortException
  @param configuration the configuration object
  @param profileName the name of the profile being documented