112113114115116117118119120121122
final PackageBuilder builder = new PackageBuilder(); builder.addPackageFromXml(source); final Package pkg = builder.getPackage(); final RuleBase ruleBase = RuleBaseFactory.newRuleBase(); ruleBase.addPackage(pkg); return ruleBase; }