* If the ruleBase is sequential, after rebuilding or incremental
* update, do an ordering of the ReteooBuilder
*/
// FIXME: this same code exists in ReteooRuleBase#newStatelessSession()
InternalRuleBase ruleBase = (InternalRuleBase) ((KnowledgeBaseImpl) this.kbase).ruleBase;
ruleBase.lock(); // XXX: readlock might be enough, no idea what order() does.
try {
if ( ruleBase.getConfiguration().isSequential() ) {
ruleBase.getReteooBuilder().order();
}
} finally {