SVNEntry defaultEntry = (SVNEntry)entries.get(getThisDirName());
SVNEntry2 defaultEntry = (SVNEntry2)entries.get(getThisDirName());
    protected Map fetchEntries() throws SVNException {        if (!myEntriesFile.exists()) {            return null;        }                Map entries = new TreeMap();        BufferedReader reader = null;        try {            reader = new BufferedReader(new InputStreamReader(SVNFileUtil.openFileForReading(myEntriesFile), "UTF-8"));            //skip format line            reader.readLine();            int entryNumber = 1;            while(true){                try {                    SVNEntry entry = readEntry(reader, entryNumber);                     if (entry == null) {                        break;                    }                     entries.put(entry.getName(), entry);                } catch (SVNException svne) {                    SVNErrorMessage err = svne.getErrorMessage().wrap("Error at entry {0,number,integer} in entries file for ''{1}'':", new Object[]{new Integer(entryNumber), getRoot()});                    SVNErrorManager.error(err);                }                ++entryNumber;            }        } catch (IOException e) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Cannot read entries file ''{0}'': {1}", new Object[] {myEntriesFile, e.getLocalizedMessage()});            SVNErrorManager.error(err, e);        } finally {            SVNFileUtil.closeFile(reader);        }        SVNEntry defaultEntry = (SVNEntry)entries.get(getThisDirName());        if (defaultEntry == null) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.ENTRY_NOT_FOUND, "Missing default entry");            SVNErrorManager.error(err);        }                Map defaultEntryAttrs = defaultEntry.asMap();        if (defaultEntryAttrs.get(SVNProperty.REVISION) == null) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.ENTRY_MISSING_REVISION, "Default entry has no revision number");            SVNErrorManager.error(err);        }        if (defaultEntryAttrs.get(SVNProperty.URL) == null) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.ENTRY_MISSING_URL, "Default entry is missing URL");            SVNErrorManager.error(err);        }        for (Iterator entriesIter = entries.keySet().iterator(); entriesIter.hasNext();) {            String name = (String)entriesIter.next();            SVNEntry entry = (SVNEntry)entries.get(name);            if (getThisDirName().equals(name)) {                continue;            }                        Map entryAttributes = entry.asMap();            SVNNodeKind kind = SVNNodeKind.parseKind((String)entryAttributes.get(SVNProperty.KIND));            if (kind == SVNNodeKind.FILE) {                if (entryAttributes.get(SVNProperty.REVISION) == null || Long.parseLong((String) entryAttributes.get(SVNProperty.REVISION), 10) < 0) {                    entryAttributes.put(SVNProperty.REVISION, defaultEntryAttrs.get(SVNProperty.REVISION));                }                if (entryAttributes.get(SVNProperty.URL) == null) {                    String rootURL = (String)defaultEntryAttrs.get(SVNProperty.URL);                    String url = SVNPathUtil.append(rootURL, SVNEncodingUtil.uriEncode(name));                    entryAttributes.put(SVNProperty.URL, url);                }                if (entryAttributes.get(SVNProperty.REPOS) == null) {                    entryAttributes.put(SVNProperty.REPOS, defaultEntryAttrs.get(SVNProperty.REPOS));                }                if (entryAttributes.get(SVNProperty.UUID) == null) {                    String schedule = (String)entryAttributes.get(SVNProperty.SCHEDULE);                    if (!(SVNProperty.SCHEDULE_ADD.equals(schedule) || SVNProperty.SCHEDULE_REPLACE.equals(schedule))) {                        entryAttributes.put(SVNProperty.UUID, defaultEntryAttrs.get(SVNProperty.UUID));                    }                }                if (entryAttributes.get(SVNProperty.CACHABLE_PROPS) == null) {                    entryAttributes.put(SVNProperty.CACHABLE_PROPS, defaultEntryAttrs.get(SVNProperty.CACHABLE_PROPS));                }            }        }        return entries;    }