@Override
  public Object getObject() {
    Object result = super.getObject();
    if (result instanceof StoredObject) {
      // For off-heap object act as if they are serialized forcing them to call getSerializedValue
      // or getValue
      result = null;
    }
    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