protected void unlockFile(FileEndpoint endpoint, FileExchange exchange, File file) throws Exception {
if (isLockFile()) {
FileLock lock = ExchangeHelper.getMandatoryProperty(exchange, "org.apache.camel.file.lock", FileLock.class);
String lockFileName = ExchangeHelper.getMandatoryProperty(exchange, "org.apache.camel.file.lock.name", String.class);
Channel channel = lock.channel();
if (LOG.isDebugEnabled()) {
LOG.debug("Unlocking file: " + file);
}
try {
lock.release();