protected synchronized TemplateProcessor getTemplateProcessor() {
/* lazily initialize templateProcessor */
if (templateProcessor == null) {
try {
templateProcessor = new TemplateProcessor("UTF-8");
} catch (UnsupportedEncodingException cannothappen) {
throw new Error(cannothappen);
}
}
return templateProcessor;