for (Iterator it = _fileSets.iterator(); it.hasNext();)
if ((_singleDataFile != null) && !_fileSets.isEmpty())
    public void execute(Task task, Database model) throws BuildException    {        try        {            SqlBuilder         builder = SqlBuilderFactory.newSqlBuilder(_databaseType);            DataToDatabaseSink sink    = new DataToDatabaseSink(_dataSource, model, builder);            DataReader         reader  = new DataReader(model, sink);            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++)                {                    File curSchemaFile = new File(fileSetDir, files[idx]);                    if (!curSchemaFile.exists())                    {                        task.log("Could not find data file "+files[idx], Project.MSG_ERR);                    }                    else if (!curSchemaFile.isFile())                    {                        task.log("Path "+curSchemaFile.getAbsolutePath()+" does not denote a data file", Project.MSG_ERR);                    }                    else if (!curSchemaFile.canRead())                    {                        task.log("Could not read data file "+curSchemaFile.getAbsolutePath(), Project.MSG_ERR);                    }                    else                    {                        try                        {                            reader.parse(curSchemaFile);                            task.log("Read data file "+curSchemaFile.getAbsolutePath(), Project.MSG_INFO);                        }                        catch (Exception ex)                        {                            throw new BuildException("Could not read data file "+curSchemaFile.getAbsolutePath(), ex);                        }                    }                }            }        }        catch (Exception ex)        {            throw new BuildException(ex);        }    }