protected void checkTX() {
    // Protect against the case where this instance was handed to a different thread w/ or w/o a
    // transaction
    // Protect against the case where the transaction associated with this entry is not in progress
    if (!myTX.isInProgressAndSameAs(localRegion.getTXState())) {
      throw new IllegalStateException(
          "Region.Entry was created with transaction that is no longer active.");
    }
  }
Create an Entry given a key. The returned Entry may or may not be destroyed
geode-core/src/main/java/org/apache/geode/internal/cache/TXEntry.java