final Configuration hibernateConfiguration,
ServiceRegistry serviceRegistry) {
return serviceRegistry.getService( DialectFactory.class ).buildDialect(
hibernateConfiguration.getProperties(),
new DialectResolutionInfoSource() {
@Override
public DialectResolutionInfo getDialectResolutionInfo() {
// if the application supplied database name/version info, use that
final String explicitDbName = hibernateConfiguration.getProperty( AvailableSettings.SCHEMA_GEN_DB_NAME );