for (Object group : s2) {
Map<String, Object> m = new HashMap<String, Object>();
m.put("region", group.toString());
try{
Node n = cache.getNode(group.toString());
m.put("resident", n.isResident());
m.put("memory", n.getChildren().size());
try{
m.put("evictionQueueCapacity", cache.getRegion(n.getFqn(),false).getEvictionRegionConfig().getEventQueueSize());
m.put("evictionAlgorithm", cache.getRegion(n.getFqn(),false).getEvictionRegionConfig().getEvictionAlgorithmConfig());
}catch (Exception e) {
m.put("evictionQueueCapacity", "");
m.put("evictionAlgorithm", "");
}
try{
m.put("evictionQueueSize", ((com.dotcms.repackage.org.jboss.cache.RegionImpl)cache.getRegion(n.getFqn(),false)).getEvictionEventQueue().size());
}catch (NullPointerException e) {
m.put("evictionQueueSize", -1);
}
}catch (Exception e) {
// do nothing