SVNEntry thisDirEntry = getEntry(getThisDirName(), true);
SVNEntry2 thisDirEntry = getEntry(getThisDirName(), true);
    public void foldScheduling(String name, String schedule) throws SVNException {        SVNEntry entry = getEntry(name, true);                if (entry == null && schedule != SVNProperty.SCHEDULE_ADD) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_SCHEDULE_CONFLICT, "''{0}'' is not under version control", name);             SVNErrorManager.error(err);        } else {            entry = addEntry(name);        }        SVNEntry thisDirEntry = getEntry(getThisDirName(), true);        String rootSchedule = thisDirEntry.getSchedule();        if (!getThisDirName().equals(entry.getName()) && (SVNProperty.SCHEDULE_DELETE.equals(rootSchedule))) {            if (SVNProperty.SCHEDULE_ADD.equals(schedule)) {                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_SCHEDULE_CONFLICT, "Can''t add ''{0}'' to deleted directory; try undeleting its parent directory first", name);                SVNErrorManager.error(err);            } else if (SVNProperty.SCHEDULE_REPLACE.equals(schedule)) {                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_SCHEDULE_CONFLICT, "Can''t replace ''{0}'' in deleted directory; try undeleting its parent directory first", name);                SVNErrorManager.error(err);            }        }                   if (entry.isAbsent() && SVNProperty.SCHEDULE_ADD.equals(schedule)) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_SCHEDULE_CONFLICT, "''{0}'' is marked as absent, so it cannot be scheduled for addition", name);            SVNErrorManager.error(err);        }                    if (SVNProperty.SCHEDULE_ADD.equals(entry.getSchedule())) {            if (SVNProperty.SCHEDULE_DELETE.equals(schedule)) {                if (!entry.isDeleted()) {                    deleteEntry(name);                    return;                }                 entry.unschedule();            }        } else if (SVNProperty.SCHEDULE_DELETE.equals(entry.getSchedule())) {            if (SVNProperty.SCHEDULE_ADD.equals(schedule)) {                entry.scheduleForReplacement();            }         } else if (SVNProperty.SCHEDULE_REPLACE.equals(entry.getSchedule())) {            if (SVNProperty.SCHEDULE_DELETE.equals(schedule)) {                entry.scheduleForDeletion();            }         } else {            if (SVNProperty.SCHEDULE_ADD.equals(schedule) && !entry.isDeleted()) {                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_SCHEDULE_CONFLICT, "Entry ''{0}'' is already under version control", name);                SVNErrorManager.error(err);            }        }    }