/** Gets the current template, reloading if {@link TemplateOptions#isDevelopmentMode()} is set. */ protected Template getTemplate() throws ServletException { if (template != null && !templateOptions.isDevelopmentMode()) { return template; } template = loadTemplate(); return template; }