ruleMap.put(new Pattern("*/computation/literal"), new LiteralAction());
ruleMap.put(new Pattern("*/computation/add"), new AddAction());
ruleMap.put(new Pattern("*/computation/multiply"), new MultiplyAction());
Context context = new ContextBase();
SimpleConfigurator simpleConfigurator = new SimpleConfigurator(ruleMap);
// link the configurator with its context
simpleConfigurator.setContext(context);
try {