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());        Map rootEntryAttrs = rootEntry.asMap();                writer.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");        writer.write("<wc-entries\n");        writer.write("   xmlns=\"svn:\">\n");        for (Iterator entriesIter = myEntries.keySet().iterator(); entriesIter.hasNext();) {            String name = (String)entriesIter.next();            SVNEntry entry = (SVNEntry)myEntries.get(name);            Map entryAttrs = entry.asMap();            writer.write("<entry");            for (Iterator names = entryAttrs.keySet().iterator(); names.hasNext();) {                String propName = (String) names.next();                String propValue = (String) entryAttrs.get(propName);                if (propValue == null) {                    continue;                }                if (BOOLEAN_PROPERTIES.contains(propName) && !Boolean.TRUE.toString().equals(propValue)) {                    continue;                }                if (!getThisDirName().equals(name)) {                    Object expectedValue;                    if (SVNProperty.KIND_DIR.equals(entryAttrs.get(SVNProperty.KIND))) {                        if (SVNProperty.UUID.equals(propName)                                || SVNProperty.REVISION.equals(propName)                                || SVNProperty.URL.equals(propName)                                 || SVNProperty.REPOS.equals(propName)) {                            continue;                        }                    } else {                        if (SVNProperty.URL.equals(propName)) {                            expectedValue = SVNPathUtil.append((String) rootEntryAttrs.get(propName), SVNEncodingUtil.uriEncode(name));                        } else if (SVNProperty.UUID.equals(propName) || SVNProperty.REVISION.equals(propName)) {                            expectedValue = rootEntryAttrs.get(propName);                        } else if (SVNProperty.REPOS.equals(propName)) {                            expectedValue = rootEntryAttrs.get(propName);                        } else {                            expectedValue = null;                        }                        if (propValue.equals(expectedValue)) {                            continue;                        }                    }                }                propName = propName.substring(SVNProperty.SVN_ENTRY_PREFIX.length());                propValue = SVNEncodingUtil.xmlEncodeAttr(propValue);                writer.write("\n   ");                writer.write(propName);                writer.write("=\"");                writer.write(propValue);                writer.write("\"");            }            writer.write("/>\n");            writer.flush();        }        writer.write("</wc-entries>\n");        writer.flush();    }