SVNEntry entry = (SVNEntry) ents.next(); if ("".equals(entry.getName())) {
SVNEntry childEntry = (SVNEntry) ents.next(); if ("".equals(childEntry.getName())) {
    private void doGetLocalProperty(SVNDirectory anchor, String name, String propName, SVNRevision rev, boolean recursive, ISVNPropertyHandler handler) throws SVNException {        SVNEntries entries = anchor.getEntries();        if (!"".equals(name)) {            SVNEntry entry = entries.getEntry(name);            if (entry == null) {                return;            }            if (entry.getKind() == SVNNodeKind.DIR) {                SVNDirectory dir = anchor.getChildDirectory(name);                if (dir != null) {                    doGetLocalProperty(dir, "", propName, rev, recursive, handler);                }            } else if (entry.getKind() == SVNNodeKind.FILE) {                SVNProperties props = rev == SVNRevision.WORKING ? anchor.getProperties(name, false) : anchor.getBaseProperties(name, false);                if (propName != null) {                    String value = props.getPropertyValue(propName);                    if (value != null) {                        handler.handleProperty(anchor.getFile(name, false), new SVNPropertyData(propName, value));                    }                } else {                    Map propsMap = props.asMap();                    for (Iterator names = propsMap.keySet().iterator(); names.hasNext();) {                        String pName = (String) names.next();                        String value = (String) propsMap.get(pName);                        handler.handleProperty(anchor.getFile(name, false), new SVNPropertyData(pName, value));                    }                }            }            entries.close();            return;        }        SVNProperties props = rev == SVNRevision.WORKING ? anchor.getProperties(name, false) : anchor.getBaseProperties(name, false);        if (propName != null) {            String value = props.getPropertyValue(propName);            if (value != null) {                handler.handleProperty(anchor.getFile(name, false), new SVNPropertyData(propName, value));            }        } else {            Map propsMap = props.asMap();            for (Iterator names = propsMap.keySet().iterator(); names.hasNext();) {                String pName = (String) names.next();                String value = (String) propsMap.get(pName);                handler.handleProperty(anchor.getFile(name, false), new SVNPropertyData(pName, value));            }        }        if (!recursive) {            return;        }        for (Iterator ents = entries.entries(); ents.hasNext();) {            SVNEntry entry = (SVNEntry) ents.next();            if ("".equals(entry.getName())) {                continue;            }            doGetLocalProperty(anchor, entry.getName(), propName, rev, recursive, handler);        }    }