if ( ruleDescr instanceof QueryDescr ) {
Abductive abductive = ruleDescr.getTypedAnnotation( Abductive.class );
if ( abductive == null ) {
this.rule = new QueryImpl( ruleDescr.getName() );
} else {
this.rule = new AbductiveQuery( ruleDescr.getName(), abductive.mode() );
}
} else {
this.rule = new RuleImpl(ruleDescr.getName());
}
this.rule.setPackage(pkg.getName());