*/
private List<List<Rule>> groupRules(List<Rule> ruleList) {
List<List<Rule>> ruleGroupList = new ArrayList<List<Rule>>();
List<Rule> ruleGroup = null;
Rule previousRule = null;
for (Rule rule : ruleList) {
if (previousRule == null ||
rule.isBreak() != previousRule.isBreak()) {
ruleGroup = new ArrayList<Rule>();
ruleGroupList.add(ruleGroup);
}
ruleGroup.add(rule);
previousRule = rule;