* @param path the digester path to add rule at
* @param rule the <code>Rule</code> to add
*/
protected void addRule(String path, Rule rule) {
Rules rules = digester.getRules();
List matches = rules.match(null, path);
if ( matches.isEmpty() ) {
if ( log.isDebugEnabled() ) {
log.debug( "Adding digester rule for path: " + path + " rule: " + rule );
}
digester.addRule( path, rule );