print(key.getForeignTable());
    protected void writeForeignKeys(Table table) throws IOException {        for (Iterator keyIter = table.getForeignKeys().iterator();            keyIter.hasNext();            ) {            ForeignKey key = (ForeignKey) keyIter.next();            if (key.getForeignTable() == null) {                System.err.println(                    "WARN: foreign key table is null for key: " + key);            }            else {                println(",");                printIndent();                print("CONSTRAINT ");                print(table.getName());                print("_FK_");                print(Integer.toString(++counter));                print(" FOREIGN KEY (");                writeLocalReferences(key);                print(key.getForeignTable());                println(")");                printIndent();                print("REFERENCES ");                print(key.getForeignTable());                print(" (");                writeForeignReferences(key);                println(")");            }        }    }