@Override
  public void release() {
    // Note that if the context's value is stored off-heap
    // and release has been called then we do not release
    // our value (since this context did not retain it)
    // but we do make sure that any future attempt to access
    // the off-heap value fails.
    if (super.getValue() instanceof StoredObject) {
      released = true;
    }
  }
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