* @param classes alll classes loaded by Groovy.
* @param groovyClassLoader Groovy class loader
* @return the loaded and parsed template
*/
public static Template parserFile(String systemImportsFilename, String templateFilename, Namespaces namespaces, TemplateTextWriter templateTextWriter, Classes classes, GroovyClassLoader groovyClassLoader) {
Template template = parseFile(templateFilename, templateTextWriter, namespaces, classes, groovyClassLoader);
template.insertSystemImportsAsFirstStatement(systemImportsFilename);
return template;
}