public static boolean release(@Released Object o) {
    if (o instanceof StoredObject) {
      ((StoredObject) o).release();
      return true;
    } else {
      return false;
    }
  }
@return true if release was done
geode-core/src/main/java/org/apache/geode/internal/offheap/OffHeapHelper.java