public static boolean hasPersistentChildRegion(PartitionedRegion region) {
    for (PartitionedRegion child : getColocatedChildRegions(region)) {
      if (child.getDataPolicy().withPersistence()) {
        return true;
      }
    }
    return false;
  }
Test to see if there are any persistent child regions of a partitioned region.
geode-core/src/main/java/org/apache/geode/internal/cache/ColocationHelper.java