if (SqlJetLockType.SHARED == lockType) {
final FileLock exclusiveLock = locks.get(SqlJetLockType.EXCLUSIVE);
if (null != exclusiveLock) {
if (exclusiveLock.isValid())
exclusiveLock.release();
locks.remove(SqlJetLockType.EXCLUSIVE);
}
if (null == locks.get(SqlJetLockType.SHARED)) {
final FileLock sharedLock = fileLockManager.lock(SHARED_FIRST, SHARED_SIZE, true);