public void addImportedType(int typeId, PdxType importedType) {
    PdxType existing = getType(typeId);
    if (existing != null && !existing.equals(importedType)) {
      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.",
              importedType, existing));
    }

    distributedTypeRegistry.addImportedType(typeId, importedType);
    idToType.put(typeId, importedType);
    typeToId.put(importedType, typeId);
    if (logger.isInfoEnabled()) {
      logger.info("Importing type: {}", importedType.toFormattedString());
    }
  }
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