// Discover the locktoken from the given lock owner
state = discoverLock(owner, path, state);
String lock = state.getLock(path);
if (lock == null) return false;
// unlock for the given path.
UnlockMethod method = new UnlockMethod(URIUtil.encodePath(path));
generateIfHeader(method);
method.setLockToken(lock);
int statusCode = client.executeMethod(method);
setStatusCode(statusCode);
if (statusCode >= 200 && statusCode < 300) {
state.removeLocks(path);