LoggerContext lc = (LoggerContext) context;
if (fileToScan.toString().endsWith("groovy")) {
if (EnvUtil.isGroovyAvailable()) {
lc.reset();
GafferConfigurator gafferConfigurator = new GafferConfigurator(lc);
gafferConfigurator.run(fileToScan);
lc.getStatusManager().add(
new InfoStatus("done resetting the logging context", this));
} else {
StatusManager sm = context.getStatusManager();
sm.add(new ErrorStatus("Groovy classes are not available on the class path. ABORTING INITIALIZATION.",