}
public static Template parseStatement(String statement, final TemplateTextWriter templateTextWriter, final Namespaces namespaces, final Classes classes, final GroovyClassLoader groovyClassLoader) {
final StringSource sourceString = new StringSource("statement");
TemplateParser parser = new TemplateParser(new ITemplateFactoryFactory() {
public ITemplateFactory getFactory(int phase) {
return new TemplateFactory(sourceString, templateTextWriter, namespaces, classes, groovyClassLoader);
}
});