repository.lock(pathsRevisionsMap, lockMessage, stealLock, new ISVNLockHandler() {
public void handleLock(String path, SVNLock lock, SVNErrorMessage error) throws SVNException {
SVNURL fullURL = rootURL.appendPath(path, false);
LockInfo lockInfo = (LockInfo) entriesMap.get(fullURL);
SVNAdminArea dir = wcAccess.probeRetrieve(lockInfo.myFile);
if (error == null) {
SVNEntry entry = wcAccess.getEntry(lockInfo.myFile, false);
if (entry == null) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "''{0}'' is not under version control", lockInfo.myFile);
SVNErrorManager.error(err);