SVNEntry entry = myCurrentDirectory.getDirectory().getEntries().getEntry(name, true);
    public void deleteEntry(String path, long revision) throws SVNException {        path = PathUtil.removeLeadingSlash(path);        path = PathUtil.removeTrailingSlash(path);        SVNLog log = myCurrentDirectory.getLog(true);        Map attributes = new HashMap();        String name = PathUtil.tail(path);                attributes.put(SVNLog.NAME_ATTR, name);        log.addCommand(SVNLog.DELETE_ENTRY, attributes, false);        SVNEntry entry = myCurrentDirectory.getDirectory().getEntries().getEntry(name, true);        SVNNodeKind kind = entry.getKind();        boolean isDeleted = entry.isDeleted();        if (path.equals(myTarget)) {            attributes.put(SVNLog.NAME_ATTR, name);            attributes.put(SVNProperty.shortPropertyName(SVNProperty.KIND), kind == SVNNodeKind.DIR ? SVNProperty.KIND_DIR : SVNProperty.KIND_FILE);            attributes.put(SVNProperty.shortPropertyName(SVNProperty.REVISION), Long.toString(myTargetRevision));            attributes.put(SVNProperty.shortPropertyName(SVNProperty.DELETED), Boolean.TRUE.toString());            log.addCommand(SVNLog.MODIFY_ENTRY, attributes, false);            myIsTargetDeleted = true;        }        if (mySwitchURL != null && kind == SVNNodeKind.DIR) {            myCurrentDirectory.getDirectory().destroy(name, true);        }        log.save();        myCurrentDirectory.runLogs();        if (isDeleted) {            // entry was deleted, but it was already deleted, no need to make a notification.            return;        }        myWCAccess.svnEvent(SVNEventFactory.createUpdateDeleteEvent(myWCAccess, myCurrentDirectory.getDirectory(), name));    }