for (Iterator paths = pathsToRevisions.keySet().iterator(); paths.hasNext();) {
String path = (String) paths.next();
Long revision = (Long) pathsToRevisions.get(path);
String reposPath = getRepositoryPath(path);
long curRevision = (revision == null || isInvalidRevision(revision.longValue())) ? myFSFS.getYoungestRevision() : revision.longValue();
SVNLock lock = null;
SVNErrorMessage error = null;
try {
lock = myFSFS.lockPath(reposPath, null, getUserName(), comment, null, curRevision, force);
} catch (SVNException svne) {
error = svne.getErrorMessage();