code: private String validateDialect(String confParam)
     {
        for (String dbType : DBConstants.DB_DIALECTS)
        {
           if (confParam.equals(dbType))
           {
              return dbType;
           }
        }
  
        return DBConstants.DB_DIALECT_AUTO; // by default
     }
docs: Validate dialect.
  
  @param confParam
  String, dialect from configuration.
  @return String
  return dialect. By default return DB_DIALECT_GENERIC.