while (it.hasNext()) {
Rule rule = (Rule)(it.next());
String id = rule.getId().toString();
List list = (List)(parameters.remove(id));
elements.add(new RuleCombinerElement(rule, list));
}
// ...and that there aren't extra parameters
if (! parameters.isEmpty())
throw new ParsingException("Unmatched parameters in Rule");