}
public ITemplateWriter getTemplateWriter() {
if (handler.getTemplateWriter() instanceof AbstractGeneralTemplateWriter) {
if (writer == null) {
writer = new CacheAwareGeneralTemplateWriter((AbstractGeneralTemplateWriter) handler.getTemplateWriter());
}
return writer;
} else {
return handler.getTemplateWriter();
}