public boolean defaultIsClassAutoSerialized(Class<?> clazz) {
    if (clazz.isEnum()) {
      return false;
    }
    String className = clazz.getName();
    if (isExcluded(className)) {
      if (!PdxSerializerObject.class.isAssignableFrom(clazz)) {
        return false;
      }
    }

    for (Pattern p : classPatterns) {
      if (p.matcher(className).matches()) {
        return hasValidConstructor(clazz, p) && !needsStandardSerialization(clazz, p);
      }
    }
    return false;
  }
Determines whether objects of the named class are excluded from auto-serialization. The classes
that are excluded are Geode-internal classes and Java classes.

@param className Class name including packages.
@return <code>true</code> if the named class is excluded.
geode-core/src/main/java/org/apache/geode/pdx/internal/AutoSerializableManager.java