jc.setContext(context);
lc.reset();
try {
jc.doConfigure(mainConfigurationURL);
lc.getStatusManager().add(
new InfoStatus("done resetting the logging context", this));
} catch (JoranException e) {
addError("Failure during reconfiguration", e);
}
} else if (mainConfigurationURL.toString().endsWith("groovy")) {
if (EnvUtil.isGroovyAvailable()) {