public void transformTemplateStyles() throws DRException {
   for (DRIStyle style : templateStyles.values()) {
     if (styles.containsKey(style.getName())) {
       continue;
     }
     transformStyle(style, false);
   }
 }
 private DRDesignStyle style(DRIStyle style, boolean textStyle, DefaultStyleType defaultStyleType)
     throws DRException {
   final DRDesignStyle designStyle;
   if (StringUtils.isBlank(style.getName())) {
     designStyle = new DRDesignStyle();
   } else {
     designStyle = new DRDesignStyle(style.getName());
   }
   baseStyle(designStyle, style);
   if (style.getParentStyle() != null) {
     designStyle.setParentStyle(
         transformStyle(style.getParentStyle(), textStyle, defaultStyleType));
   }
   for (DRIConditionalStyle conditionalStyle : style.getConditionalStyles()) {
     designStyle.addConditionalStyle(conditionalStyle(conditionalStyle));
   }
   return designStyle;
 }