dropExternalForeignKeys((Table)tables.get(idx));
Table table = (Table)tables.get(idx);  if ((table.getName() != null) && (table.getName().length() > 0)) { dropExternalForeignKeys(table); }
    public void dropDatabase(Database database) throws IOException    {        List tables = database.getTables();        // we're dropping the external foreignkeys first        for (int idx = tables.size() - 1; idx >= 0; idx--)        {            dropExternalForeignKeys((Table)tables.get(idx));        }        // Next we drop the tables in reverse order to avoid referencial problems        for (int idx = tables.size() - 1; idx >= 0; idx--)        {            Table table = (Table)tables.get(idx);            writeTableComment(table);            dropTable(table);        }    }