Object obj = list.get(i); tx.lock(obj, Transaction.READ);
lockRead(list.get(i));
    public void lockRead(List list) throws StorageException {        try {            Transaction tx = _odmg.currentTransaction();            if (tx == null)                throw new StorageException("No current transaction!");            if (list != null) {                for (int i = 0; i < list.size(); i++) {                    Object obj = list.get(i);                    tx.lock(obj, Transaction.READ);                }            }        } catch (ODMGRuntimeException ex) {            throw new StorageException(ExcepcaoPersistencia.READ_LOCK, ex);        }    }