public void write(Database database, Collection tables, boolean showRelationshipsGraph, boolean showOrphansGraph, LineWriter html) throws IOException, SQLException {
public void write(Database database, Collection tables, boolean showRelationshipsGraph, boolean showOrphansGraph, LineWriter html) throws IOException {
    public void write(Database database, Collection tables, boolean showRelationshipsGraph, boolean showOrphansGraph, LineWriter html) throws IOException, SQLException {        Set byName = new TreeSet(new Comparator() {            public int compare(Object object1, Object object2) {                return ((Table)object1).getName().compareTo(((Table)object2).getName());            }        });        byName.addAll(tables);        Table tempTable = tables.isEmpty() ? null : (Table)tables.iterator().next();        boolean showIds = tempTable != null && tempTable.getId() != null;        int numViews = 0;        for (Iterator iter = byName.iterator(); iter.hasNext(); ) {            Table table = (Table)iter.next();            if (table.isView())                ++numViews;        }        writeHeader(database, byName.size() - numViews, numViews, showIds, showRelationshipsGraph, showOrphansGraph, html);        int numRows = 0;        for (Iterator iter = byName.iterator(); iter.hasNext(); ) {            Table table = (Table)iter.next();            numRows += writeLineItem(table, html);        }        writeFooter(numRows, html);    }