455456457458459460461462463464465
if ( rules == null ) { rules = new ArrayList<Rule>(); } //Adding the Rule to the filter urlRewriteFilter.addRule( rule ); rules.add( rule ); } else { throw new RuntimeException( "Non UrlRewriteFilter found!" ); } }