private boolean checkRuleMatch(ACLRule newRule){
  Iterator<ACLRule> iter=ruleSet.iterator();
  while (iter.hasNext()) {
    ACLRule existingRule=iter.next();
    if (newRule.match(existingRule)) {
      logger.error("existing rule: " + existingRule);
      return true;
    }
  }
  return false;
}

private boolean checkRuleMatch ( ACLRule newRule ) { Iterator < ACLRule > iter = ruleSet . iterator ( ) ; while ( iter . hasNext ( ) ) { ACLRule existingRule = iter . next ( ) ; if ( newRule . match ( existingRule ) ) { logger . error ( "existing rule: " + existingRule ) ; return true ; } } return false ; }
check if the new rule matches an existing rule
