public void addRule(final Rule rule){
  rule.setId(ruleIdCounter++);
  rules.add(rule);
}

public void addRule ( final Rule rule ) { rule . setId ( ruleIdCounter ++ ) ; rules . add ( rule ) ; }
will add the rule to the rules list .
