private static boolean cachePrefersPdx(InternalCache internalCache) {
    // InternalCache internalCache = GemFireCacheImpl.getInstance();
    return internalCache != null && internalCache.getPdxReadSerialized();
  }
Creates and returns an instance of CachedDeserializable that contains the specified object
(that is not a byte[]).
geode-core/src/main/java/org/apache/geode/internal/cache/CachedDeserializableFactory.java