builder.addPackageFromXml(source);
final Package pkg = builder.getPackage();
final RuleBase ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.addPackage(pkg);
return ruleBase;
}
/*
private static RuleBase readRulesFromDSL(String DRLFileName, String DSLFileName) throws Exception {
final Reader source = new InputStreamReader(new FileInputStream(DRLFileName));