ReflectionUtils.setField(f.getKey(), goo, dependency);
}
processor.processInjection(goo);
return goo;
} catch (InstantiationException ex) {
throw new ScriptCompilationException(scriptSource, "Could not instantiate Groovy script class: "
+ scriptClass.getName(), ex);
} catch (IllegalAccessException ex) {
throw new ScriptCompilationException(scriptSource, "Could not access Groovy script constructor: "
+ scriptClass.getName(), ex);
}
}