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);
if ( Play.configuration.getProperty("save-gttemplate-source-to-disk", null) != null ) {
GTCompiler.srcDestFolder = new File(Play.applicationPath, Play.configuration.getProperty("save-gttemplate-source-to-disk", null));
}