@Override
  public Object getValue() {
    Object result = super.getValue();
    if (result instanceof StoredObject) {
      StoredObject so = (StoredObject) result;
      checkForReleasedOffHeapValue(so);
      // since they called getValue they don't care if it is serialized or deserialized so return it
      // as serialized
      result = so.getValueAsHeapByteArray();
    }
    return result;
  }
This method is for internal use and should not be on the public apis.
geode-core/src/main/java/org/apache/geode/cache/operations/internal/GetOperationContextImpl.java