protected void initRuleImplementations(Node ruleImplementationsNode,
RulesConfig rulesConfig) throws XPathExpressionException
{
// Create a new RuleImplementationsElmt
RuleImplementationsElmt ruleImplementationsElmt =
new RuleImplementationsElmt();
// Map to hold the RuleImpleElmt's
Map<String, RuleImplElmt> ruleImplElmts =
new HashMap<String, RuleImplElmt>();
// Get the rule-impl nodes
List<Node> ruleImplNodes = RUtil.getChildren(ruleImplementationsNode,
XML.NODE.RULE_IMPL);
for (Node ruleImplNode : ruleImplNodes)
{
RuleImplElmt ruleImplElmt = createRuleImplElmt(ruleImplNode);
ruleImplElmts.put(ruleImplElmt.getRuleName(), ruleImplElmt);
}
// Set the ruleImplElmts in the ruleImplementationsElmt
ruleImplementationsElmt.setRuleImplElmts(ruleImplElmts);
// Set the RuleImplementationsElmt in rulesConfig
rulesConfig.setRuleImplementationsElmt(ruleImplementationsElmt);
}