code: public static DocPath forPackage(PackageDoc pd) {
          return (pd == null) ? empty : DocPath.create(pd.name().replace('.', '/'));
      }
docs: Return the path for a package.
  For example, if the package is java.lang,
  the path is java/lang.