code: private boolean hasConstantField(PackageDoc pkg) {
          ClassDoc[] classes
                  = (pkg.name().length() > 0)
                    ? pkg.allClasses()
                    : configuration.classDocCatalog.allClasses(DocletConstants.DEFAULT_PACKAGE_NAME);
          boolean found = false;
          for (ClassDoc doc : classes) {
              if (doc.isIncluded() && hasConstantField(doc)) {
                  found = true;
              }
          }
          return found;
      }
docs: Return true if the given package has constant fields to document.
  
  @param pkg   the package being checked.
  @return true if the given package has constant fields to document.