private static void loadTemplate(Element element, FTManager manager) {
    final String qName = element.getAttributeValue(ATTRIBUTE_NAME);
    if (qName == null) return;
    final FileTemplateBase template = manager.getTemplate(qName);
    if (template == null) {
      LOG.warn("Template is missing: " + qName);
      return;
    }
    template.setFileName(StringUtil.notNullize(element.getAttributeValue(ATTRIBUTE_FILE_NAME)));
    template.setReformatCode(Boolean.parseBoolean(element.getAttributeValue(ATTRIBUTE_REFORMAT)));
    template.setLiveTemplateEnabled(Boolean.parseBoolean(element.getAttributeValue(ATTRIBUTE_LIVE_TEMPLATE)));

    if (template instanceof BundledFileTemplate) {
      ((BundledFileTemplate)template).setEnabled(Boolean.parseBoolean(element.getAttributeValue(ATTRIBUTE_ENABLED, "true")));
    }
  }
private static void loadTemplate(Element element, FTManager manager)