protected static GTJavaBase getGTTemplateInstance( GTTemplateLocation templateLocation) {
try {
return templateRepo.getTemplateInstance( templateLocation );
} catch ( GTTemplateNotFound e) {
throw new TemplateNotFoundException(e.queryPath);
} catch (GTCompilationExceptionWithSourceInfo e) {
GTTemplate t = new GTTemplate(e.templateLocation);
t.loadSource();
throw new TemplateCompilationException( t, e.oneBasedLineNo, e.specialMessage);
} catch (GTCompilationException e) {