@SuppressWarnings("rawtypes") private void initializeRegionSubRegions(SystemMemberCacheJmxImpl cache,RegionSubRegionSnapshot regionSnapshot) throws MalformedObjectNameException, AdminException {
  String fullPath=regionSnapshot.getFullPath();
  if (!fullPath.equals(PLACE_HOLDER_ROOT_REGION)) {
    fullPath=fullPath.substring(PLACE_HOLDER_ROOT_REGION.length() - 1);
    cache.manageRegion(fullPath);
  }
  Set subRegionSnapshots=regionSnapshot.getSubRegionSnapshots();
  for (Iterator iterator=subRegionSnapshots.iterator(); iterator.hasNext(); ) {
    RegionSubRegionSnapshot subRegion=(RegionSubRegionSnapshot)iterator.next();
    try {
      initializeRegionSubRegions(cache,subRegion);
    }
 catch (    AdminException e) {
      logger.info(LocalizedMessage.create(LocalizedStrings.MemberInfoWithStatsMBean_EXCEPTION_WHILE_INTIALIZING_0_CONTINUING,subRegion.getFullPath()),e);
    }
  }
}

@ SuppressWarnings ( "rawtypes" ) private void initializeRegionSubRegions ( SystemMemberCacheJmxImpl cache , RegionSubRegionSnapshot regionSnapshot ) throws MalformedObjectNameException , AdminException { String fullPath = regionSnapshot . getFullPath ( ) ; if ( ! fullPath . equals ( PLACE_HOLDER_ROOT_REGION ) ) { fullPath = fullPath . substring ( PLACE_HOLDER_ROOT_REGION . length ( ) - 1 ) ; cache . manageRegion ( fullPath ) ; } Set subRegionSnapshots = regionSnapshot . getSubRegionSnapshots ( ) ; for ( Iterator iterator = subRegionSnapshots . iterator ( ) ; iterator . hasNext ( ) ; ) { RegionSubRegionSnapshot subRegion = ( RegionSubRegionSnapshot ) iterator . next ( ) ; try { initializeRegionSubRegions ( cache , subRegion ) ; } catch ( AdminException e ) { logger . info ( LocalizedMessage . create ( LocalizedStrings . MemberInfoWithStatsMBean_EXCEPTION_WHILE_INTIALIZING_0_CONTINUING , subRegion . getFullPath ( ) ) , e ) ; } } }
initializes all regions & its subregions using the cache mbean and the regionsubregionsnapshot for this cache mbean .
