try { mc.setTransactionIsolation(level);
if (isClosed()) throw new SQLException("Connection has being closed.");  if (getTransactionIsolation() != level) { try {  if (inTransaction()) getLocalTransaction().commit();  mc.setTransactionIsolation(level);  } catch (ResourceException e) { throw new FBSQLException(e); }
    public synchronized void setTransactionIsolation(int level)         throws SQLException     {        try         {            mc.setTransactionIsolation(level);        }        catch (ResourceException e)        {            throw new SQLException(e.getMessage());        } // end of try-catch    }