public Object getRawNewValueAsHeapObject() {
    Object result = basicGetNewValue();
    if (mayHaveOffHeapReferences()) {
      result = OffHeapHelper.copyIfNeeded(result, getRegion().getCache());
    }
    return result;
  }
Like getRawNewValue except that if the result is an off-heap reference then copy it to the
heap. Note: to prevent the heap copy use getRawNewValue instead
geode-core/src/main/java/org/apache/geode/internal/cache/EntryEventImpl.java