// org.apache.joran.action package.
//
// We will let the XML file to teach the Joran interpreter about new rules
ruleMap.put(new Pattern("/computation/newRule"), new NewRuleAction());
SimpleConfigurator simpleConfigurator = new SimpleConfigurator(ruleMap);
// link the configurator with its context
simpleConfigurator.setContext(context);
simpleConfigurator.doConfigure(args[0]);
// Print any errors that might have occured.
StatusPrinter.printInCaseOfErrorsOrWarnings(context);
}