987988989990991992993994995996997
switch (lockChange) { case LOCK_FOR_SESSION: case LOCK_FOR_NON_SESSION: // check is another session has already locked the document if (translator.isLocked(doc)) { throw new LockFailureException(key); } break; case UNLOCK: break; }