Iterator iter = sessionResult.iterateObjects();
while (iter.hasNext()) {
Object o = (Object) iter.next();
if (o instanceof PartialRedundancy) {
PartialRedundancy pr = (PartialRedundancy) o;
String key = pr.getLeft().getRuleName() + ":"
+ pr.getRight().getRuleName();
if (map.containsKey(key)) {
Set<Redundancy> set = map.get(key);
set.add(pr.getRedundancy());
} else {
Set<Redundancy> set = new HashSet<Redundancy>();
set.add(pr.getRedundancy());
map.put(key, set);
}
}
}