Context context = new ContextBase();
Map<Pattern, Action> ruleMap = new HashMap<Pattern, Action>();
// we start with the rule for the top-most (root) element
ruleMap.put(new Pattern("*/computation"), new ComputationAction1());
// Associate "/new-rule" pattern with NewRuleAction from the
// org.apache.joran.action package.
//
// We will let the XML file to teach the Joran interpreter about new rules