private static String getPathBase(String url) {
		if (url == null)
			return null;
		if (FileUtilities.isRemote(url)) {
			int i = url.lastIndexOf('/');
			if (i == -1)
				return null;
			return url.substring(0, i + 1);
		}
		int i = url.lastIndexOf(System.getProperty("file.separator"));
		if (i == -1)
			i = url.lastIndexOf("/");
		if (i == -1)
			return null;
		return url.substring(0, i + 1);
	}