public static Set<PartitionRegionInfo> getPartitionRegionInfo(final Cache cache) {
    Set<PartitionRegionInfo> prDetailsSet = new TreeSet<>();
    fillInPartitionedRegionInfo((InternalCache) cache, prDetailsSet, false);
    return prDetailsSet;
  }
Gathers a set of details about all partitioned regions in the local Cache. If there are no
partitioned regions then an empty set will be returned.

@param cache the cache which has the regions
@return set of details about all locally defined partitioned regions
@since GemFire 6.0
geode-core/src/main/java/org/apache/geode/cache/partition/PartitionRegionHelper.java