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