FileSystemBinding templateDir = launchConfig.getBaseDir().binding(templatesPath);
if (templateDir == null) {
throw new IllegalStateException("templatesPath '" + templatesPath + "' is outside the file system binding");
}
return new GroovyTemplateRenderingEngine(
launchConfig.getExecController().getControl(),
launchConfig.getBufferAllocator(),
templateDir,
launchConfig.isDevelopment(),
config.staticallyCompile