private static PartitionedRegion isPartitionedCheck(final Region<?, ?> r) {
    if (!isPartitionedRegion(r)) {
      throw new IllegalArgumentException(
          String.format("Region %s is not a Partitioned Region",
              r.getFullPath()));
    }
    return (PartitionedRegion) r;
  }
Test a Region to see if it is a partitioned Region

@return PartitionedRegion if it is a partitioned Region
@since GemFire 6.0
geode-core/src/main/java/org/apache/geode/cache/partition/PartitionRegionHelper.java