try { Arrays.sort((String[])tableNames.clone(), new TableSequenceComparator(connection)); return tableNames; } catch (DatabaseUnitRuntimeException e) { if (e.getException() instanceof DataSetException)
boolean reprocess = true; List tmpTableNames = Arrays.asList(tableNames); List sortedTableNames = null; DatabaseSequenceFilter._dependentMap = new HashMap();  while (reprocess) { sortedTableNames = new LinkedList();   for (Iterator i = tmpTableNames.iterator(); i.hasNext();)
    private static String[] sortTableNames(IDatabaseConnection connection,            String[] tableNames) throws DataSetException, SQLException    {        try        {            Arrays.sort((String[])tableNames.clone(),                    new TableSequenceComparator(connection));            return tableNames;        }        catch (DatabaseUnitRuntimeException e)        {            if (e.getException() instanceof DataSetException)            {                throw (DataSetException)e.getException();            }            if (e.getException() instanceof SQLException)            {                throw (SQLException)e.getException();            }            throw e;        }    }