class UriUtils {

    public static boolean isChildPath(String path, String parentPath) {
        if (parentPath == null || path == null) {
            return false;
        }
        // check if path begins with parent path
        if (!path.startsWith(parentPath)) {
            return false;
        }
        // in the event parent path did not include the path char
        if (!parentPath.endsWith(URI_PATH_CHAR)
                && !path.startsWith(URI_PATH_CHAR, parentPath.length())) {
            return false;
        }
        return true;
    }

    private  UriUtils();

}