private void createSubRegionOfPartitionedRegion(List vmList,int regionType){
  Iterator nodeIterator=vmList.iterator();
  while (nodeIterator.hasNext()) {
    VM vm=(VM)nodeIterator.next();
    vm.invoke(SubRegionOfPartitonedRegion(regionType));
  }
}

private void createSubRegionOfPartitionedRegion ( List vmList , int regionType ) { Iterator nodeIterator = vmList . iterator ( ) ; while ( nodeIterator . hasNext ( ) ) { VM vm = ( VM ) nodeIterator . next ( ) ; vm . invoke ( SubRegionOfPartitonedRegion ( regionType ) ) ; } }
this function creates subregion of partition region
