void release() {
        try {
            lock.release();
        } catch (ClosedChannelException e) {
            EmptyStatement.ignore(e);
        } catch (IOException e) {
            logger.severe("Problem while releasing the lock on " + lockFile, e);
        }

        try {
            randomAccessFile.close();
        } catch (IOException e) {
            logger.severe("Problem while closing the channel " + lockFile, e);
        } finally {
            IOUtil.delete(lockFile);
        }
    }
@Test
    public void testRelease() {
        try {
            preloaderLock.release();
        } catch (Throwable e) {
            e.printStackTrace();
            fail("Cannot release preloaderLock");
        }
    }