db.out.flush();
    public void isc_commit_transaction(isc_tr_handle tr_handle) throws GDSException {        isc_tr_handle_impl tr = (isc_tr_handle_impl) tr_handle;        isc_db_handle_impl db = tr.rtr_rdb;        if (tr_handle == null) {            throw new GDSException(isc_bad_trans_handle);        }        synchronized (db) {            tr.setState(isc_tr_handle.TRANSACTIONCOMMITTING);            try {                if (debug) {System.out.print("op_commit ");}                if (debug) {System.out.print("tr.rtr_id: " + tr.rtr_id);}                db.out.writeInt(op_commit);                db.out.writeInt(tr.rtr_id);                if (debug) {System.out.println("sent");}                receiveResponse(db);            } catch (IOException ex) {                throw new GDSException(isc_net_read_err);            }            tr.setState(isc_tr_handle.NOTRANSACTION);            tr.rtr_rdb = null;            db.rdb_transactions.removeElement(tr);        }    }