code: public void setDialect(final IDialect dialect) {
          Validate.notNull(dialect, "Dialect cannot be null");
          checkNotInitialized();
          this.dialectConfigurations.clear();
          this.dialectConfigurations.add(new DialectConfiguration(dialect));
      }
docs: <p>
  Sets a new unique dialect for this template engine.
  </p>
  <p>
  This operation is equivalent to removing all the currently configured dialects and then
  adding this one.
  </p>
  <p>
  This operation can only be executed before processing templates for the first
  time. Once a template is processed, the template engine is considered to be
  <i>initialized</i>, and from then on any attempt to change its configuration
  will result in an exception.
  </p>
  
  @param dialect the new unique {@link IDialect} to be used.