if (entries == null) { entries = getAnchor().getEntries(); name = myName; if (entries.getEntry(name) != null && entries.getEntry(name).isDirectory()) { name = ""; } } String value = null; if (entries != null) { try { if (entries.getEntry(name) == null) { name = ""; } value = entries.getPropertyValue(name, propertyName); } finally { entries.close(); } } if (SVNProperty.URL.equals(propertyName)) { if (value != null && !name.equals(myName)) {  value = PathUtil.append(value, PathUtil.encode(myName)); } } return value;
return anchorEntries.getPropertyValue(myName, propertyName);
    public String getTargetEntryProperty(String propertyName) throws SVNException {        SVNDirectory dir = "".equals(myName) ? getAnchor() : new SVNDirectory(this, myName, new File(getAnchor().getRoot(), myName));        SVNEntries entries = null;        String name = "";        if (dir != null && dir.isVersioned()) {            entries = dir.getEntries();                    }        if (entries == null) {            entries = getAnchor().getEntries();            name = myName;            if (entries.getEntry(name) != null && entries.getEntry(name).isDirectory()) {                name = "";            }        }        String value = null;        if (entries != null) {            try {                if (entries.getEntry(name) == null) {                    name = "";                }                value = entries.getPropertyValue(name, propertyName);            } finally {                entries.close();            }        }        if (SVNProperty.URL.equals(propertyName)) {            if (value != null && !name.equals(myName)) {                // generated URL.                value = PathUtil.append(value, PathUtil.encode(myName));            }        }        return value;            }