@Override
  @Released
  public void setValue(RegionEntryContext context, @Unretained Object value)
      throws RegionClearedException {
    // TODO: This will mark new entries as being recently used
    // It might be better to only mark them when they are modified.
    // Or should we only mark them on reads?
    setValue(context, value, true);
  }
To fix bug 49901 if v is a GatewaySenderEventImpl then make a heap copy of it if it is offheap.

@return the value to provide to the gii request; null if no value should be provided.
geode-core/src/main/java/org/apache/geode/internal/cache/entries/AbstractRegionEntry.java