code: int mapLockLevelDependendOnIsolationLevel(Integer isolationId, int lockLevel)
      {
          int result = 0;
          switch(isolationId.intValue())
          {
              case LockManager.IL_READ_UNCOMMITTED:
                  result = ReadUncommittedLock.mapLockLevel(lockLevel);
                  break;
              case LockManager.IL_READ_COMMITTED:
                  result = ReadCommitedLock.mapLockLevel(lockLevel);
                  break;
              case LockManager.IL_REPEATABLE_READ:
                  result = RepeadableReadsLock.mapLockLevel(lockLevel);
                  break;
              case LockManager.IL_SERIALIZABLE:
                  result = SerializeableLock.mapLockLevel(lockLevel);
                  break;
              case LockManager.IL_OPTIMISTIC:
                  throw new LockRuntimeException("Optimistic locking must be handled on top of this class");
              default:
                  throw new LockRuntimeException("Unknown lock isolation level specified");
          }
          return result;
      }
docs: Helper method to map the specified common lock level (e.g like
  {@link #COMMON_READ_LOCK}, {@link #COMMON_UPGRADE_LOCK, ...}) based
  on the isolation level to the internal used lock level value by the
  {@link org.apache.commons.transaction.locking.MultiLevelLock2} implementation.
  
  @param isolationId
  @param lockLevel
  @return