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 columns = new TreeSet(new Comparator() {            public int compare(Object object1, Object object2) {                TableColumn column1 = (TableColumn)object1;                TableColumn column2 = (TableColumn)object2;                int rc = column1.getName().compareTo(column2.getName());                if (rc == 0)                    rc = column1.getTable().getName().compareTo(column2.getTable().getName());                return rc;            }        });        Set primaryColumns = new HashSet();        Set indexedColumns = new HashSet();        Iterator iter = tables.iterator();        while (iter.hasNext()) {            Table table = (Table)iter.next();            columns.addAll(table.getColumns());            primaryColumns.addAll(table.getPrimaryColumns());            Iterator indexIter = table.getIndexes().iterator();            while (indexIter.hasNext()) {                TableIndex index = (TableIndex)indexIter.next();                indexedColumns.addAll(index.getColumns());            }        }        writeHeader(database, columns.size(), showRelationshipsGraph, showOrphansGraph, html);        HtmlTablePage formatter = HtmlTablePage.getInstance();        iter = columns.iterator();        while (iter.hasNext()) {            TableColumn column = (TableColumn)iter.next();            formatter.writeColumn(column, column.getTable().getName(), primaryColumns, indexedColumns, false, html);        }        writeFooter(html);    }