session.setGlobal("result", analysisResult);
String ruleName1 = "Rule 1";
String ruleName2 = "Rule 2";
Pattern p1 = new Pattern();
p1.setRuleName(ruleName1);
Pattern p2 = new Pattern();
p2.setRuleName(ruleName2);
LiteralRestriction lr1 = new LiteralRestriction();
lr1.setRuleName(ruleName1);
LiteralRestriction lr2 = new LiteralRestriction();
lr2.setRuleName(ruleName2);
PatternPossibility pp1 = new PatternPossibility();
pp1.setPatternId(p1.getId());
pp1.setRuleName(ruleName1);
pp1.add(lr1);
PatternPossibility pp2 = new PatternPossibility();
pp2.setPatternId(p2.getId());
pp2.setRuleName(ruleName2);
pp2.add(lr2);
Redundancy r1 = new Redundancy(lr1, lr2);
Redundancy r2 = new Redundancy(p1, p2);