private void checkForReleasedOffHeapValue(StoredObject so) {
    // Note that we only care about stored objects with a ref count
    if (released && so.hasRefCount()) {
      throw new IllegalStateException(
          "Attempt to access off-heap value after the OperationContext callback returned.");
    }
  }
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