code: public String getPackageAnchorName(PackageDoc packageDoc) {
          return packageDoc == null || packageDoc.name().length() == 0 ?
              SectionName.UNNAMED_PACKAGE_ANCHOR.getName() : packageDoc.name();
      }
docs: Given a package, return the name to be used in HTML anchor tag.
  @param packageDoc the package.
  @return the name to be used in HTML anchor tag.