class UriUtils {

    public static String getParentPath(String path) {
        int parentPathIndex = path.lastIndexOf(URI_PATH_CHAR_CONST);
        if (parentPathIndex > 0) {
            return path.substring(0, parentPathIndex);
        }
        if (parentPathIndex == 0 && path.length() > 1) {
            return URI_PATH_CHAR;
        }
        return null;
    }

    private  UriUtils();

}