outputBufferProvider = new InstanceOutputBufferProvider(bufferSize);
}
// Loads the template from the resource loader, manipulating the AST as
// required for correctness.
TemplateFactory templateFactory = new LoadingTemplateFactory();
// Applies optimizations to improve performance.
// These steps are entirely optional, and are not required for correctness.
templateFactory = setupOptimizerFactory(templateFactory);