SVNAdminArea child = adminArea.getWCAccess().retrieve(adminArea.getFile(entry.getName()));
SVNAdminArea child; try { child = adminArea.getWCAccess().retrieve(adminArea.getFile(entry.getName())); } catch (SVNException e) { if (e.getErrorMessage().getErrorCode() == SVNErrorCode.WC_NOT_LOCKED) { child = null; } else { throw e; } }
    private static void collectLocks(SVNAdminArea adminArea, Map lockTokens) throws SVNException {        for (Iterator ents = adminArea.entries(false); ents.hasNext();) {            SVNEntry entry = (SVNEntry) ents.next();            if (entry.getURL() != null && entry.getLockToken() != null) {                lockTokens.put(entry.getURL(), entry.getLockToken());            }            if (!adminArea.getThisDirName().equals(entry.getName()) && entry.isDirectory()) {                SVNAdminArea child = adminArea.getWCAccess().retrieve(adminArea.getFile(entry.getName()));                if (child != null) {                    collectLocks(child, lockTokens);                }            }        }        adminArea.closeEntries();    }