SVNEntry thisDirEntry = getEntry(getThisDirName(), true);
SVNEntry2 thisDirEntry = getEntry(getThisDirName(), true);
    private void removeThisDirectory(boolean deleteWorkingFiles, boolean reportInstantError) throws SVNException {        SVNWCAccess2 access = getWCAccess();         access.checkCancelled();        boolean leftSomething = false;        SVNEntry thisDirEntry = getEntry(getThisDirName(), true);        thisDirEntry.setIncomplete(true);        saveEntries(false);                Map wcProps = getWCPropertiesStorage(true);        if (wcProps.size() > 0) {            wcProps.clear();        }        saveWCProperties(true);                for (Iterator entries = entries(false); entries.hasNext();) {            SVNEntry childEntry = (SVNEntry) entries.next();            if (childEntry.isFile()) {                try {                    removeFile(childEntry.getName(), deleteWorkingFiles, reportInstantError);                } catch (SVNException svne) {                    if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.WC_LEFT_LOCAL_MOD) {                        if (reportInstantError) {                            throw svne;                        }                        leftSomething = true;                    } else {                        throw svne;                    }                }            } else if (childEntry.isDirectory() && !getThisDirName().equals(childEntry.getName())) {                File childPath = getFile(childEntry.getName());                if (access.isMissing(childPath)) {                    deleteEntry(childEntry.getName());                } else {                    SVNAdminArea childArea = access.retrieve(childPath);                    try {                        childArea.removeFromRevisionControl(childEntry.getName(), deleteWorkingFiles, reportInstantError);                    } catch (SVNException svne) {                        if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.WC_LEFT_LOCAL_MOD) {                            if (reportInstantError) {                                throw svne;                            }                            leftSomething = true;                        } else {                            throw svne;                        }                    }                }            }        }                if (!access.isWCRoot(getRoot())) {            SVNAdminArea parentArea = access.retrieve(getRoot().getParentFile());            parentArea.deleteEntry(getRoot().getName());            parentArea.saveEntries(false);        }                destroyAdminArea();        if (deleteWorkingFiles && !leftSomething) {            getRoot().delete();        }        if (leftSomething) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_NOT_LOCKED);            SVNErrorManager.error(err);        }    }