Platform           platform = PlatformFactory.createNewPlatformInstance(getDatabaseType());
Platform           platform = getPlatform();
    public void execute(Task task, Database model) throws BuildException    {        if (getDataSource() == null)        {            throw new BuildException("No database specified.");        }        try        {            Platform           platform = PlatformFactory.createNewPlatformInstance(getDatabaseType());            DataToDatabaseSink sink     = new DataToDatabaseSink(platform, model);            DataReader         reader   = new DataReader();            platform.setDataSource(getDataSource());            reader.setModel(model);            reader.setSink(sink);            if ((_singleDataFile != null) && !_fileSets.isEmpty())            {                throw new BuildException("Please use either the datafile attribute or the sub fileset element, but not both");            }            if (_singleDataFile != null)            {                readSingleDataFile(task, reader, _singleDataFile);            }            else            {                for (Iterator it = _fileSets.iterator(); it.hasNext();)                {                    FileSet          fileSet    = (FileSet)it.next();                    File             fileSetDir = fileSet.getDir(task.getProject());                    DirectoryScanner scanner    = fileSet.getDirectoryScanner(task.getProject());                    String[]         files      = scanner.getIncludedFiles();                        for (int idx = 0; (files != null) && (idx < files.length); idx++)                    {                        readSingleDataFile(task, reader, new File(fileSetDir, files[idx]));                    }                }            }        }        catch (Exception ex)        {            throw new BuildException(ex);        }    }