} else {
String l = lock.getLockToken();
if (l != null) {
return l;
}
throw new WebdavException("LOCK does not provide a lock token.");
}
} else if (status == WebdavStatus.SC_MULTI_STATUS) {
throw Utils.makeBuildException("Can't lock", lock.getResponses());
} else {
throw Utils.makeBuildException("Can't lock", status, lock.getStatusText());