@Override
  @SuppressWarnings("unchecked")
  public Object getObject() {
    @SuppressWarnings("rawtypes")
    Class c;
    try {
      c = InternalDataSerializer.getCachedClass(className);
    } catch (ClassNotFoundException ex) {
      throw new PdxSerializationException(
          String.format("Could not create an instance of a class %s",
              className),
          ex);
    }
    try {
      return Enum.valueOf(c, enumName);
    } catch (IllegalArgumentException ex) {
      throw new PdxSerializationException("Enum could not be deserialized because \""
          + enumName + "\" is not a valid name in enum class " + c, ex);
    }
  }
Used to represent an enum value as a PdxInstance

@since GemFire 6.6.2
geode-core/src/main/java/org/apache/geode/pdx/internal/PdxInstanceEnum.java