code: public String getPackageName(PackageDoc packageDoc) {
          return packageDoc == null || packageDoc.name().length() == 0 ?
              DocletConstants.DEFAULT_PACKAGE_NAME : packageDoc.name();
      }
docs: Given a package, return its name.
  @param packageDoc the package to check.
  @return the name of the given package.