repoPath = normalizePath(repoPath);
try
{
Session session = session(repoName, workspaceName(repoPath), lockTokens(lockTokenHeader, ifHeader));
return new LockCommand(nullResourceLocks).lock(session, path(repoPath), body, new Depth(depthHeader), "86400");
}
catch (PreconditionException exc)
{
log.error("PreconditionException " + exc.getMessage(), exc);