{
Configuration config = this.ruleSetReader.endConfiguration( );
SemanticModule module = this.ruleSetReader.lookupSemanticModule( uri,
localName );
ConsequenceFactory factory = module.getConsequenceFactory( localName );
Consequence consequence;
try
{
Rule rule = (Rule) this.ruleSetReader.getParent( Rule.class );
consequence = factory.newConsequence( rule,
this.ruleSetReader.getFactoryContext( ),
config );
rule.setConsequence( consequence );
}