SVNEntry rootEntry = (SVNEntry) myEntries.get(getThisDirName());
SVNEntry2 rootEntry = (SVNEntry2) myEntries.get(getThisDirName());
    public void saveEntries(boolean close) throws SVNException {        if (myEntries != null) {            if (!isLocked()) {                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_NOT_LOCKED, "No write-lock in ''{0}''", getRoot());                SVNErrorManager.error(err);            }                        SVNEntry rootEntry = (SVNEntry) myEntries.get(getThisDirName());            if (rootEntry == null) {                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.ENTRY_NOT_FOUND, "No default entry in directory ''{0}''", getRoot());                SVNErrorManager.error(err);            }                        String reposURL = rootEntry.getRepositoryRoot();            String url = rootEntry.getURL();            if (reposURL != null && !SVNPathUtil.isAncestor(reposURL, url)) {                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "Entry ''{0}'' has inconsistent repository root and url", getThisDirName());                SVNErrorManager.error(err);            }                File tmpFile = new File(getAdminDirectory(), "tmp/entries");            Writer os = null;            try {                os = new OutputStreamWriter(SVNFileUtil.openFileForWriting(tmpFile), "UTF-8");                writeEntries(os);            } catch (IOException e) {                SVNFileUtil.closeFile(os);                SVNFileUtil.deleteFile(tmpFile);                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Cannot wrtie entries file ''{0}'': {1}", new Object[] {myEntriesFile, e.getLocalizedMessage()});                SVNErrorManager.error(err, e);            } finally {                SVNFileUtil.closeFile(os);            }                        SVNFileUtil.rename(tmpFile, myEntriesFile);            SVNFileUtil.setReadonly(myEntriesFile, true);            if (close) {                closeEntries();            }        }    }