// Create a simple rule store where pattern and action associations will
// be kept. This is a basic requirement before invoking a Joran Interpreter.
RuleStore ruleStore = new SimpleRuleStore();
// Associate "/computation" pattern with ComputationAction1
ruleStore.addRule(new Pattern("/computation"), new ComputationAction1());
// Other associations
ruleStore.addRule(new Pattern("/computation/literal"), new LiteralAction());
ruleStore.addRule(new Pattern("/computation/add"), new AddAction());
ruleStore.addRule(new Pattern("/computation/multiply"), new MultiplyAction());