code: private void generateUMLClass(PackageDoc[] pkgs) throws IOException {
          for (int i=0; i < pkgs.length; i++) {
              // generate statistics
              generateUMLClass(pkgs[i].ordinaryClasses(), pkgs[i].name());
          }
      }
docs: Method that serializes PackageDoc objects by serializing it's classes
  into &lt;UML:Class> elements.
  
  @param pkgs an array of PackageDoc objects