code: public static void generate(Configuration configuration) throws DocFileIOException {
          PackageListWriter packgen = new PackageListWriter(configuration);
          packgen.generatePackageListFile(configuration.docEnv);
      }
docs: Generate the package index.
  
  @param configuration the current configuration of the doclet.
  @throws DocFileIOException if there is a problem writing the output