public void checkForColocatedChildren() {
    List<PartitionedRegion> listOfChildRegions = ColocationHelper.getColocatedChildRegions(this);
    if (listOfChildRegions.size() != 0) {
      List<String> childRegionList = new ArrayList<>();
      for (PartitionedRegion childRegion : listOfChildRegions) {
        if (!childRegion.getName().contains(ParallelGatewaySenderQueue.QSTRING)) {
          childRegionList.add(childRegion.getFullPath());
        }
      }
      if (!childRegionList.isEmpty()) {
        throw new IllegalStateException(String.format(
            "The parent region [%s] in colocation chain cannot "
                + "be destroyed, unless all its children [%s] are destroyed",
            getFullPath(), childRegionList));
      }
    }
  }
This method closes the partitioned region locally. It is invoked from the postDestroyRegion
method of LocalRegion {@link LocalRegion}, which is overridden in PartitionedRegion This method
<br>
Updates this prId in prIDMap <br>
Cleanups the data store (Removes the bucket mapping from b2n region, locally destroys b2n and
destroys the bucket regions. <br>
sends destroyPartitionedRegionMessage to other VMs so that they update their RegionAdvisor <br>
Sends BackupBucketMessage to other nodes

@param event the region event
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java