public void addImportedEnum(int enumId, EnumInfo importedEnum) {
    EnumInfo existing = getEnumInfoById(enumId);
    if (existing != null && !existing.equals(importedEnum)) {
      throw new PdxSerializationException(
          String.format(
              "Detected conflicting PDX types during import:%s%sSnapshot data containing PDX types must be imported into an empty cache with no pre-existing type definitions. Allow the import to complete prior to inserting additional data into the cache.",
              importedEnum, existing));
    }

    distributedTypeRegistry.addImportedEnum(enumId, importedEnum);
    idToEnum.put(enumId, importedEnum);
    enumInfoToId.put(importedEnum, enumId);
  }
Returns all the PdxTypes for the given class name.
An empty set will be returned if no types exist.
geode-core/src/main/java/org/apache/geode/pdx/internal/TypeRegistry.java