void populateRegionSubRegions(RegionSubRegionSnapshot parentSnapShot,Set regions,GemFireCacheImpl cache){
  if (cancelled)   return;
  Region subRegion=null;
  RegionSubRegionSnapshot subRegionSnapShot=null;
  for (Iterator iter=regions.iterator(); iter.hasNext(); ) {
    subRegion=(Region)iter.next();
    try {
      subRegionSnapShot=new RegionSubRegionSnapshot(subRegion);
      parentSnapShot.addSubRegion(subRegionSnapShot);
      Set subRegions=subRegion.subregions(false);
      populateRegionSubRegions(subRegionSnapShot,subRegions,cache);
    }
 catch (    Exception e) {
      logger.debug("Failed to create snapshot for region: {}. Continuing with next region.",subRegion.getFullPath(),e);
    }
  }
}

void populateRegionSubRegions ( RegionSubRegionSnapshot parentSnapShot , Set regions , GemFireCacheImpl cache ) { if ( cancelled ) return ; Region subRegion = null ; RegionSubRegionSnapshot subRegionSnapShot = null ; for ( Iterator iter = regions . iterator ( ) ; iter . hasNext ( ) ; ) { subRegion = ( Region ) iter . next ( ) ; try { subRegionSnapShot = new RegionSubRegionSnapshot ( subRegion ) ; parentSnapShot . addSubRegion ( subRegionSnapShot ) ; Set subRegions = subRegion . subregions ( false ) ; populateRegionSubRegions ( subRegionSnapShot , subRegions , cache ) ; } catch ( Exception e ) { logger . debug ( "Failed to create snapshot for region: {}. Continuing with next region." , subRegion . getFullPath ( ) , e ) ; } } }
populates the collection of sub - region snapshots for the parentsnapshot with snapshots for the regions given .
