gds.isc_detach_database(db);
if (db != null && !db.hasTransactions()) { gds.isc_detach_database(db); }
    synchronized void releaseDbHandle(isc_db_handle db, FBConnectionRequestInfo cri)         throws GDSException     {        if (db != null && removeDbHandleIfLastUse(db))         {            gds.isc_detach_database(db);        }    }