{
Configuration config = this.ruleSetReader.endConfiguration( );
SemanticModule module = this.ruleSetReader.lookupSemanticModule( uri,
localName );
DurationFactory factory = module.getDurationFactory( localName );
Duration duration;
try
{
Rule rule = (Rule) this.ruleSetReader.getParent( Rule.class );
duration = factory.newDuration( rule,
this.ruleSetReader.getFactoryContext( ),
config );
rule.setDuration( duration );
}