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);
}