public void releaseExclusiveReadLock(GenericFileOperations<File> fileGenericFileOperations,
GenericFile<File> fileGenericFile, Exchange exchange) throws Exception {
FileLock lock = ExchangeHelper.getMandatoryProperty(exchange, "CamelFileLock", FileLock.class);
String lockFileName = ExchangeHelper.getMandatoryProperty(exchange, "CamelFileLockName", String.class);
Channel channel = lock.channel();
try {
lock.release();
} finally {
// must close channel first
ObjectHelper.close(channel, "while acquiring exclusive read lock for file: " + lockFileName, LOG);