4546474849505152535455
switch (lockType) { case READ: state.acquireReadLock(element); break; case WRITE: state.acquireWriteLock(element); break; default: throw new IllegalStateException("Unknown lock type "+lockType); } } private TransactionImpl getCurrentTransaction() {