private boolean isCompressedOffHeap(EntryEventImpl event) {
    return event.getRegion().getAttributes().getOffHeap()
        && event.getRegion().getAttributes().getCompressor() != null;
  }
@return false if preconditions indicate that
        the put should not be done.
geode-core/src/main/java/org/apache/geode/internal/cache/map/RegionMapPut.java