SVNErrorManager.error("svn: can't create lock file for '" + getRoot().getAbsolutePath() + "'.");
SVNErrorManager.error("svn: Cannot lock working copy '" + getRoot() + "'");
    public boolean lock() throws SVNException {        if (!isVersioned()) {            return false;        }        boolean created = false;        try {            created = getLockFile().createNewFile();        } catch (IOException e) {            SVNErrorManager.error("svn: can't create lock file for '" + getRoot().getAbsolutePath() + "'.");        }        if (!created) {            if (getLockFile().exists()) {                SVNErrorManager.error("svn: can't create lock file for '" + getRoot().getAbsolutePath() + "'; directory is already locked.");            } else {                SVNErrorManager.error("svn: can't create lock file for '" + getRoot().getAbsolutePath() + "'.");            }        }        return created;    }