code: private boolean hasConstantField(PackageDoc pkg) {
          ClassDoc[] classes;
          if (pkg.name().length() > 0) {
              classes = pkg.allClasses();
          } else {
              classes = configuration.classDocCatalog.allClasses(
                  DocletConstants.DEFAULT_PACKAGE_NAME);
          }
          boolean found = false;
          for (int j = 0; j < classes.length; j++){
              if (classes[j].isIncluded() && hasConstantField(classes[j])) {
                  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.