public ManagedResource cleanupRegionResources(String regionPath){
  ManagedResource cleaned=null;
synchronized (this.managedRegionResourcesMap) {
    Set<Entry<String,SystemMemberRegionJmxImpl>> entries=managedRegionResourcesMap.entrySet();
    for (Iterator<Entry<String,SystemMemberRegionJmxImpl>> it=entries.iterator(); it.hasNext(); ) {
      Entry<String,SystemMemberRegionJmxImpl> entry=it.next();
      SystemMemberRegionJmxImpl managedResource=entry.getValue();
      ObjectName objName=managedResource.getObjectName();
      String pathProp=objName.getKeyProperty("path");
      if (pathProp != null && pathProp.equals(regionPath)) {
        cleaned=managedResource;
        it.remove();
        break;
      }
    }
  }
  return cleaned;
}

public ManagedResource cleanupRegionResources ( String regionPath ) { ManagedResource cleaned = null ; synchronized ( this . managedRegionResourcesMap ) { Set < Entry < String , SystemMemberRegionJmxImpl > > entries = managedRegionResourcesMap . entrySet ( ) ; for ( Iterator < Entry < String , SystemMemberRegionJmxImpl > > it = entries . iterator ( ) ; it . hasNext ( ) ; ) { Entry < String , SystemMemberRegionJmxImpl > entry = it . next ( ) ; SystemMemberRegionJmxImpl managedResource = entry . getValue ( ) ; ObjectName objName = managedResource . getObjectName ( ) ; String pathProp = objName . getKeyProperty ( "path" ) ; if ( pathProp != null && pathProp . equals ( regionPath ) ) { cleaned = managedResource ; it . remove ( ) ; break ; } } } return cleaned ; }
cleans up managed resources created for the region that was ( created and ) destroyed in a cache represented by this managed resource .
