code: public void setDialects(final Set<IDialect> dialects) {
          Validate.notNull(dialects, "Dialect set cannot be null");
          checkNotInitialized();
          this.dialectConfigurations.clear();
          for (final IDialect dialect : dialects)  {
              addDialect(dialect);
          }
      }
docs: <p>
  Sets a new set of dialects for this template engine, all of them using
  their default prefixes.
  </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 dialects the new set of {@link IDialect} objects to be used.