if ( templateRepo != null && Play.mode == Play.Mode.PROD) {
return ;
}
// Telling gt-engine that it should use the TagContext-impl in play 1 instead of its own
GTTagContext.singleton = new GTTagContextBridge();
GTGroovyPimpTransformer.gtJavaExtensionMethodResolver = new GTJavaExtensionMethodResolver1x();
GTTemplateInstanceFactoryLive.protectionDomain = Play.classloader.protectionDomain;
// set up folder where we dump generated src
GTFileResolver.impl = new GTFileResolver1xImpl(Play.templatesPath);