public void checkClosed() {
    if (isClosed) {
      throw new RegionDestroyedException(
          String.format("PR %s is locally closed", this),
          getFullPath());
    }
  }
This method checks if region is closed.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java