static EntryEventImpl switchEventOwnerAndOriginRemote(EntryEventImpl event,
      boolean originRemote) {
    assert event != null;
    if (event.getRegion().isUsedForPartitionedRegionBucket()) {
      LocalRegion pr = event.getRegion().getPartitionedRegion();
      event.setRegion(pr);
    }
    event.setOriginRemote(originRemote);
    return event;
  }
Switch the event's region from BucketRegion to owning PR and set originRemote to the given
value
geode-core/src/main/java/org/apache/geode/internal/cache/BaseRegionMap.java