* @throws Exception
*/
protected void addRewriteRule ( Rule rule ) throws Exception {
//Get a reference of our url rewrite filter
DotUrlRewriteFilter urlRewriteFilter = DotUrlRewriteFilter.getUrlRewriteFilter();
if ( urlRewriteFilter != null ) {
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!" );
}
}