String rootUrlStr = rootUrl.toString(); String urlStr = url.toString(); if (urlStr.indexOf(rootUrlStr) == -1) { return null; } if (urlStr.length() == rootUrlStr.length()) { return ""; } return urlStr.substring(rootUrlStr.length() + (includeStartingSlash ? 0 : 1));
return getRelativePath(rootUrl, url, false);
    public static String getRelativePath(SVNUrl rootUrl, SVNUrl url, boolean includeStartingSlash )     {    	//TODO Isn't there a more efficient way than to convert those urls to Strings ?        String rootUrlStr = rootUrl.toString();        String urlStr = url.toString();        if (urlStr.indexOf(rootUrlStr) == -1) {            return null;        }        if (urlStr.length() == rootUrlStr.length()) {            return "";        }        return urlStr.substring(rootUrlStr.length() + (includeStartingSlash ? 0 : 1));    }