if (actualUUID == null || !actualUUID.equals(expectedUUID)) {
if (expectedUUID != null && !expectedUUID.equals(actualUUID)) {
    private Map validateRelocateTargetURL(SVNURL targetURL, String expectedUUID, Map validatedURLs, boolean isRoot) throws SVNException {        if (validatedURLs == null) {            return null;        }        for(Iterator targetURLs = validatedURLs.keySet().iterator(); targetURLs.hasNext();) {            SVNURL validatedURL = (SVNURL) targetURLs.next();            if (targetURL.toString().startsWith(validatedURL.toString())) {                if (isRoot && !targetURL.equals(validatedURL)) {                    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_INVALID_RELOCATION, "''{0}'' is not the root of the repository", targetURL);                    SVNErrorManager.error(err);                }                String validatedUUID = (String) validatedURLs.get(validatedURL);                if (validatedUUID != null && !validatedUUID.equals(expectedUUID)) {                    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_INVALID_RELOCATION, "The repository at ''{0}'' has uuid ''{1}'', but the WC has ''{2}''",                            new Object[] {validatedURL, validatedUUID, expectedUUID});                    SVNErrorManager.error(err);                }                return validatedURLs;            }        }        SVNRepository repos = createRepository(targetURL, true);        SVNURL actualRoot = repos.getRepositoryRoot(true);        if (isRoot && !targetURL.equals(actualRoot)) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_INVALID_RELOCATION, "''{0}'' is not the root of the repository", targetURL);            SVNErrorManager.error(err);        }        String actualUUID = repos.getRepositoryUUID(true);        if (actualUUID == null || !actualUUID.equals(expectedUUID)) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_INVALID_RELOCATION, "The repository at ''{0}'' has uuid ''{1}'', but the WC has ''{2}''",                    new Object[] {targetURL, actualUUID, expectedUUID});            SVNErrorManager.error(err);        }        validatedURLs.put(targetURL, actualUUID);        return validatedURLs;    }