printIdentifier(getConstraintName(null, table, "FK", Integer.toString(idx)));
printIdentifier(getForeignKeyName(table, key));
    protected void writeEmbeddedForeignKeysStmt(Database database, Table table) throws IOException    {        for (int idx = 0; idx < table.getForeignKeyCount(); idx++)        {            ForeignKey key = table.getForeignKey(idx);            if (key.getForeignTableName() == null)            {                _log.warn("Foreign key table is null for key " + key);            }            else            {                println(",");                printIndent();                                if (getPlatformInfo().isEmbeddedForeignKeysNamed())                {                    print("CONSTRAINT ");                    printIdentifier(getConstraintName(null, table, "FK", Integer.toString(idx)));                    print(" ");                }                print("FOREIGN KEY (");                writeLocalReferences(key);                print(") REFERENCES ");                printIdentifier(getTableName(database.findTable(key.getForeignTableName())));                print(" (");                writeForeignReferences(key);                print(")");            }        }    }