@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    ExpiryRegionEntry other = (ExpiryRegionEntry) obj;
    if (regionEntry == null) {
      if (other.regionEntry != null) {
        return false;
      }
    } else if (!regionEntry.equals(other.regionEntry)) {
      return false;
    }
    if (region == null) {
      return other.region == null;
    } else
      return region.equals(other.region);
  }
Used to create a cheap Region.Entry that can be passed to the CustomExpiry callback
geode-core/src/main/java/org/apache/geode/internal/cache/ExpiryRegionEntry.java