List<CombinerElement> elements = new ArrayList<CombinerElement>();
for (Rule rule : rules) {
String id = rule.getId().toString();
List<CombinerParameter> 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");