code: public String getPkgName(ClassDoc cd) {
          String pkgName = cd.containingPackage().name();
          if (pkgName.length() > 0) {
              pkgName += ".";
              return pkgName;
          }
          return "";
      }
docs: Get the name of the package, this class is in.
  
  @param cd    ClassDoc.