SVNEntry entry = (SVNEntry)myEntries.get(name);
SVNEntry2 entry = (SVNEntry2)myEntries.get(name);
    protected void writeEntries(Writer writer) throws IOException {        SVNEntry rootEntry = (SVNEntry)myEntries.get(getThisDirName());        writer.write(getFormatVersion() + "\n");        writeEntry(writer, getThisDirName(), rootEntry.asMap(), null);        for (Iterator entries = myEntries.keySet().iterator(); entries.hasNext();) {            String name = (String)entries.next();            SVNEntry entry = (SVNEntry)myEntries.get(name);            if (getThisDirName().equals(name)) {                continue;            }            Map entryAttributes = entry.asMap();            Map defaultEntryAttrs = rootEntry.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));                }            }            writeEntry(writer, name, entryAttributes, rootEntry.asMap());        }    }