code: public final void setTemplateMode(final String templateMode) {
          // Setter overload actually goes against the JavaBeans spec, but having this one is good for legacy
          // compatibility reasons. Besides, given the getter returns TemplateMode, intelligent frameworks like
          // Spring will recognized the property as TemplateMode-typed and simply ignore this setter.
          Validate.notNull(templateMode, "Cannot set a null template mode value");
          this.templateMode = TemplateMode.parse(templateMode);
      }
docs: <p>
  Sets the template mode to be applied to templates resolved by this resolver.
  </p>
  <p>
  Allowed templates modes are defined by the {@link TemplateMode} class.
  </p>
  
  @param templateMode the template mode.