RuleBaseConfiguration config = ( RuleBaseConfiguration ) this.properties.get( Constants.RES_RULEBASE_CONFIG );
org.drools.reteoo.ReteooRuleBase ruleBase;
if ( config != null ) {
ruleBase = new org.drools.reteoo.ReteooRuleBase( UUIDGenerator.getInstance().generateRandomBasedUUID().toString(),
config,
new Jsr94FactHandleFactory() );
} else {
ruleBase = new org.drools.reteoo.ReteooRuleBase( UUIDGenerator.getInstance().generateRandomBasedUUID().toString(),
new Jsr94FactHandleFactory() );
}
ruleBase.addPackage( pkg );
this.ruleBase = ruleBase;
}