SVNEntry entry = (SVNEntry) entries.next();
SVNEntry2 entry = (SVNEntry2) entries.next();
    public SVNAdminArea upgradeFormat(SVNAdminArea adminArea) throws SVNException {        File logFile = adminArea.getAdminFile("log");        SVNFileType type = SVNFileType.getType(logFile);        if (type == SVNFileType.FILE) {            return adminArea;        }        ISVNLog log = getLog();        Map command = new HashMap();        command.put(ISVNLog.FORMAT_ATTR, String.valueOf(getFormatVersion()));        log.addCommand(ISVNLog.UPGRADE_FORMAT, command, false);        command.clear();                Iterator entries = adminArea.entries(true);        myEntries = new HashMap();        Map basePropsCache = getBasePropertiesStorage(true);        Map propsCache = getPropertiesStorage(true);                for (; entries.hasNext();) {            SVNEntry entry = (SVNEntry) entries.next();            if (entry.getKind() != SVNNodeKind.FILE && !adminArea.getThisDirName().equals(entry.getName())) {                continue;            }                        SVNEntry newEntry = new SVNEntry(new HashMap(entry.asMap()), this, entry.getName());            myEntries.put(entry.getName(), newEntry);            ISVNProperties srcBaseProps = adminArea.getBaseProperties(entry.getName());            if (!srcBaseProps.isEmpty()) {                Map basePropsHolder = new HashMap(srcBaseProps.asMap());                ISVNProperties dstBaseProps = new SVNProperties13(basePropsHolder);                basePropsCache.put(entry.getName(), dstBaseProps);            }            ISVNProperties srcProps = adminArea.getProperties(entry.getName());            if (!srcProps.isEmpty()) {                ISVNProperties dstProps = new SVNProperties14(new HashMap(srcProps.asMap()), this, entry.getName()){                    protected Map loadProperties() throws SVNException {                        return myProperties;                    }                };                propsCache.put(entry.getName(), dstProps);            }                        command.put(ISVNLog.NAME_ATTR, entry.getName());            command.put(SVNProperty.shortPropertyName(SVNProperty.PROP_TIME), SVNTimeUtil.formatDate(new Date(0), true));            log.addCommand(ISVNLog.MODIFY_ENTRY, command, false);            command.clear();                        ISVNProperties wcProps = adminArea.getWCProperties(entry.getName());            log.logChangedWCProperties(entry.getName(),wcProps.asMap());        }        saveVersionedProperties(log, false);        log.save();        SVNFileUtil.deleteFile(getAdminFile("README.txt"));        SVNFileUtil.deleteFile(getAdminFile("empty-file"));        SVNFileUtil.deleteAll(getAdminFile("wcprops"), true);        SVNFileUtil.deleteAll(getAdminFile("dir-wcprops"), true);        runLogs();        return this;    }