HashMap<String, MapService> mapServices = ServiceManager.getMapServices();
for(Iterator<Entry<String, MapService>> itr=mapServices.entrySet().iterator();itr.hasNext();){
Entry<String, MapService> entry = itr.next();
MapService mapService = entry.getValue();
MapServicePool mapServicePool = mapService.getMapServicePool();
mapServicePool.shrinkPool();
}
}
}