code: public final void setTemplateMode(final TemplateMode templateMode) {
          Validate.notNull(templateMode, "Cannot set a null template mode value");
          // We re-parse the specified template mode so that we make sure we get rid of deprecated values
          this.templateMode = TemplateMode.parse(templateMode.toString());
      }
docs: <p>
  Sets the template mode to be applied to templates resolved by this resolver.
  </p>
  
  @param templateMode the template mode.