public void acquireWriteLock(LockMessageHandler lockHandler,
String ownerName) throws AlreadyLockedException,
LockFailureException {
File lockFile = new File(targetDirectory, lockFilename);
writeLock = new FileConcurrencyLock(lockFile);
writeLock.setListenForLostLock(shouldMonitorWriteLock(lockFile));
writeLock.setApprover(this);
writeLock.acquireLock(null, lockHandler, ownerName);
}