public Object getDeserializedValue() {
    final Object val = basicGetNewValue();
    if (val instanceof CachedDeserializable) {
      return ((CachedDeserializable) val).getDeserializedForReading();
    } else {
      return val;
    }
  }
If the old value is stored off-heap return a retained OFF_HEAP_REFERENCE (caller must release).

@return a retained OFF_HEAP_REFERENCE if the old value is off-heap; otherwise returns null
geode-core/src/main/java/org/apache/geode/internal/cache/EntryEventImpl.java