in configuration/xml/src/main/java/org/apache/commons/chain2/config/xml/XmlConfigParser.java [58:76]
public XmlConfigParser(String ruleSet, ClassLoader loader) {
if (ruleSet == null) {
throw new IllegalArgumentException("ConfigParser can't be " +
"instantiated with a null ruleSet class name");
}
if (loader == null) {
throw new IllegalArgumentException("ConfigParser can't be " +
"instantiated with a null class loader reference");
}
try {
Class<?> clazz = loader.loadClass(ruleSet);
setRuleSet((RuleSet) clazz.newInstance());
} catch (Exception e) {
throw new RuntimeException("Exception initializing RuleSet '"
+ ruleSet + "' instance: "
+ e.getMessage());
}
}