protected void prepareTemplate(ThemeDisplay themeDisplay, Template template) throws Exception { if (themeDisplay == null) { return; } template.prepare(themeDisplay.getRequest()); }