public String getTemplateExtension() {
   if (template != null) {
     return template.getExtension();
   }
   return null;
 }