Boolean initialized = rule.initialise( Config.CONTEXT );
if ( initialized ) {
//Adding it the rule to the current filter configuration
Conf conf = getConf();
conf.addRule( rule );
//Apply the rules changes
reload();
} else {
throw new RuntimeException( "Error initializing Rewrite Rule!" );