public static Map<String, Region> getAllColocatedLocalDataSets(
      PartitionedRegion partitionedRegion, InternalRegionFunctionContext context) {
    Map<String, PartitionedRegion> colocatedRegions = getAllColocationRegions(partitionedRegion);
    Map<String, Region> colocatedLocalRegions = new HashMap<>();
    for (final Entry<String, PartitionedRegion> stringPartitionedRegionEntry : colocatedRegions
        .entrySet()) {
      Entry me = (Entry) stringPartitionedRegionEntry;
      final Region pr = (Region) me.getValue();
      colocatedLocalRegions.put((String) me.getKey(), context.getLocalDataSet(pr));
    }
    return colocatedLocalRegions;
  }
gets local data of colocated regions on a particular data store

@return map of region name to local colocated regions
@since GemFire 5.8Beta
geode-core/src/main/java/org/apache/geode/internal/cache/ColocationHelper.java