platform.setForeignKeysSorted(isSortForeignKeys());
    public Platform getPlatform() throws BuildException    {        Platform platform = null;        if (_databaseType == null)        {            if (_dataSource == null)            {                throw new BuildException("No database specified.");            }            if (_databaseType == null)            {                _databaseType = new PlatformUtils().determineDatabaseType(_dataSource.getDriverClassName(),                                                                          _dataSource.getUrl());            }            if (_databaseType == null)            {                _databaseType = new PlatformUtils().determineDatabaseType(_dataSource);            }        }        try        {            platform = PlatformFactory.createNewPlatformInstance(_databaseType);        }        catch (Exception ex)        {            throw new BuildException("Database type "+_databaseType+" is not supported.", ex);        }        if (platform == null)        {            throw new BuildException("Database type "+_databaseType+" is not supported.");        }        platform.setDataSource(_dataSource);        platform.setDelimitedIdentifierModeOn(isUseDelimitedSqlIdentifiers());        return platform;    }