<BUG>dialect = "org.hibernate.dialect.MySQLDialect"; break;}</BUG><CONTEXT>String dialect;switch( State.getInstance().dbMode){case 1 : dialect = "org.hibernate.dialect.SQLServerDialect"; break;case 2:  dialect = "org.hibernate.dialect.PostgreSQL9Dialect"; break;default:<extra_id_0>context.put("dialect", State.getInstance().dbMode == 1 ? "org.hibernate.dialect.SQLServerDialect" : dialect);context.put("restrictCatalog", State.getInstance().dbMode == 1);String db;</CONTEXT>
}if (State.getInstance().customDialect != null){dialect = State.getInstance().customDialect;}