if (compiler == null) {
ProjectInternal projectInternal = (ProjectInternal) getProject();
InProcessCompilerDaemonFactory inProcessCompilerDaemonFactory = getServices().get(InProcessCompilerDaemonFactory.class);
RoutesCompiler playRoutesCompiler = new RoutesCompiler(getRoutesCompilerVersion());
compiler = new DaemonRoutesCompiler(projectInternal.getProjectDir(), playRoutesCompiler, inProcessCompilerDaemonFactory, getCompilerClasspath().getFiles());
}
return compiler;
}