adminArea.setLocked(true);
    public SVNAdminArea createVersionedDirectory(File dir, String url, String rootURL, String uuid, long revNumber, boolean createMyself) throws SVNException {        dir = createMyself ? getRoot() : dir;        dir.mkdirs();        File adminDir = createMyself ? getAdminDirectory() : new File(dir, SVNFileUtil.getAdminDirectoryName());        adminDir.mkdir();        SVNFileUtil.setHidden(adminDir, true);        // lock dir.        File lockFile = createMyself ? myLockFile : new File(adminDir, "lock");        SVNFileUtil.createEmptyFile(lockFile);        SVNAdminUtil.createReadmeFile(adminDir);        SVNFileUtil.createEmptyFile(createMyself ? getAdminFile("empty-file") : new File(adminDir, "empty-file"));        File[] tmp = {                createMyself ? getAdminFile("tmp") : new File(adminDir, "tmp"),                createMyself ? getAdminFile("tmp" + File.separatorChar + "props") : new File(adminDir, "tmp" + File.separatorChar + "props"),                createMyself ? getAdminFile("tmp" + File.separatorChar + "prop-base") : new File(adminDir, "tmp" + File.separatorChar + "prop-base"),                createMyself ? getAdminFile("tmp" + File.separatorChar + "text-base") : new File(adminDir, "tmp" + File.separatorChar + "text-base"),                createMyself ? getAdminFile("tmp" + File.separatorChar + "wcprops") : new File(adminDir, "tmp" + File.separatorChar + "wcprops"),                createMyself ? getAdminFile("props") : new File(adminDir, "props"),                 createMyself ? getAdminFile("prop-base") : new File(adminDir, "prop-base"),                createMyself ? getAdminFile("text-base") : new File(adminDir, "text-base"),                 createMyself ? getAdminFile("wcprops") : new File(adminDir, "wcprops")};        for (int i = 0; i < tmp.length; i++) {            tmp[i].mkdir();        }        SVNAdminUtil.createFormatFile(adminDir);        SVNAdminArea adminArea = createMyself ? this : new SVNXMLAdminArea(dir);        SVNEntry rootEntry = adminArea.getEntry(adminArea.getThisDirName(), true);        if (rootEntry == null) {            rootEntry = adminArea.addEntry(adminArea.getThisDirName());        }        if (url != null) {            rootEntry.setURL(url);        }        rootEntry.setRepositoryRoot(rootURL);        rootEntry.setRevision(revNumber);        rootEntry.setKind(SVNNodeKind.DIR);        if (uuid != null) {            rootEntry.setUUID(uuid);        }        if (revNumber > 0) {            rootEntry.setIncomplete(true);        }        adminArea.saveEntries(false);                // unlock dir.        SVNFileUtil.deleteFile(lockFile);        return adminArea;    }