*/
private Compiler<TwirlCompileSpec> getCompiler(TwirlCompileSpec spec) {
if (compiler == null) {
InProcessCompilerDaemonFactory inProcessCompilerDaemonFactory = getServices().get(InProcessCompilerDaemonFactory.class);
CompilerDaemonManager compilerDaemonManager = getServices().get(CompilerDaemonManager.class);
compiler = new TwirlCompilerFactory(getProject().getProjectDir(), compilerDaemonManager, inProcessCompilerDaemonFactory, getForkOptions()).newCompiler(spec);
}
return compiler;
}