code: private void acquireLocksOnEntries(final OMMapBufferEntry[] entries, OPERATION_TYPE operationType) {
      if (operationType == OPERATION_TYPE.WRITE)
        for (OMMapBufferEntry entry : entries) {
          entry.acquireWriteLock();
          entry.setDirty();
        }
      else
        for (OMMapBufferEntry entry : entries)
          entry.acquireReadLock();
    }
docs: Locks all entries.
  
  @param entries
  that will be locked.
  @param operationType
  determine read or write lock will be performed.