static private File getCommonPart(File file1, File file2) throws SVNClientException {
static File getCommonPart(File file1, File file2) throws SVNClientException {
	static private File getCommonPart(File file1, File file2) throws SVNClientException {		String file1CanonPath;		String file2CanonPath;		try {			file1CanonPath = file1.getCanonicalPath();			file2CanonPath = file2.getCanonicalPath();		} catch (IOException e) {			throw SVNClientException.wrapException(e);		}				if (file1CanonPath.equals(file2CanonPath)) {			return new File(file1CanonPath);		}				int latestSeparator = -1;		int file1Length = file1CanonPath.length();		int file2Length = file2CanonPath.length(); 				int minLength = (file1Length < file2Length) ? file1Length : file2Length;					char char1;		char char2;		for (int i = 0; i < minLength;i++) {			char1 = file1CanonPath.charAt(i);			char2 = file2CanonPath.charAt(i);			if (char1 != char2) {				break;							}			if (char1 == File.separatorChar) {				latestSeparator = i;			}		}		if (latestSeparator == -1) {			return null; // the two files have nothing in common (one on disk c: and the other on d: for ex)		}		return new File(file1CanonPath.substring(0,latestSeparator+1));	}