code: public static Dialect buildDialect(String dialectName) throws DialectException {
          try {
              return (Dialect) loadDialect(dialectName).newInstance();
          } catch (ClassNotFoundException e) {
              throw new DialectException("Dialect class not found: " + dialectName);
          } catch (Exception e) {
              throw new DialectException("Could not instantiate dialect class", e);
          }
      }
docs: Returns a dialect instance given the name of the class to use.
  
  @param dialectName The name of the dialect class.
  
  @return The dialect instance.
  @throws DialectException