for (Iterator children = entry.asDirectory().childEntries(); children.hasNext();) { assertNotModified((ISVNEntry) children.next()); }
    private static void assertNotModified(ISVNEntry entry) throws SVNException {        if (entry == null) {            return;        }        if (!entry.isManaged()) {            throw new SVNException("'" + entry.getPath() + "' is unmanaged, use 'force' parameter to force deletion.");        }        if (entry.isPropertiesModified()) {            throw new SVNException("'" + entry.getPath() + "' is modified locally, use 'force' parameter to force deletion.");        }        if (!entry.isDirectory()) {            if (entry.asFile().isContentsModified()) {                throw new SVNException("'" + entry.getPath() + "' is modified locally, use 'force' parameter to force deletion.");            }        } else {            for (Iterator children = entry.asDirectory().unmanagedChildEntries(true); children.hasNext();) {                assertNotModified((ISVNEntry) children.next());            }        }    }