kieBaseConfiguration.setProperty(entry.getKey(), entry.getValue());
}
}
KieBase kieBase = kieContainer.newKieBase(kieBaseConfiguration);
if (BooleanUtils.isTrue(generateDroolsTestOnError)) {
<BUG>return new TestGenLegacyDroolsScoreDirectorFactory<>(kieBase);
</BUG>
} else {
return new LegacyDroolsScoreDirectorFactory<>(kieBase);
}

kieBaseConfiguration.setProperty(entry.getKey(), entry.getValue());
}
}
KieBase kieBase = kieContainer.newKieBase(kieBaseConfiguration);
if (BooleanUtils.isTrue(generateDroolsTestOnError)) {
return new TestGenLegacyDroolsScoreDirectorFactory<>(kieBase, scoreDrlList, scoreDrlFileList);
} else {
return new LegacyDroolsScoreDirectorFactory<>(kieBase);
}
