Enumeration en = model().groups().objectEnumerator();
//log.debug( "currCritDict:"+currCritDict);
while (en.hasMoreElements()) {
DRGroup grp = (DRGroup)en.nextElement();
DRMasterCriteria dmc = grp.masterCriteria();
DRCriteria crt = (DRCriteria)currCritDict.objectForKey(dmc.label());
if(crt != null) {
dict.setObjectForKey(crt, dmc.keyDesc());
if (crt.isTotal()) {
NSMutableDictionary d = (NSMutableDictionary)dict.objectForKey("isTotal");
if (d == null) {
d = new NSMutableDictionary();
dict.setObjectForKey(d, "isTotal");
}
d.setObjectForKey("true", dmc.keyDesc());
}
}
}
return dict;