@Trivial
    public static String normalizeDescendentPath(String path) {
        if (path == null || path.length() == 0)
            return "";

        path = normalizeRelative(path);

        if (path.startsWith(".."))
            throw new MalformedLocationException("Can not reference \"..\" when creating a descendant (path=" + path + ")");

        return path;
    }
@ Trivial public static String normalizeDescendentPath ( String path ) { if ( path == null || path . length ( ) == 0 ) return "" ; path = normalizeRelative ( path ) ; if ( path . startsWith ( ".." ) ) throw new MalformedLocationException ( "Can not reference \"..\" when creating a descendant (path=" + path + ")" ) ; return path ; }
Normalize a relative path using {@link #normalize(String)} and verify that
the normalized path does not begin with an upwards path element ("..").

The path is required to be a relative path which uses forward slashes ('/').

The normalized path is tested as an absolute path according to {@link #pathIsAbsolute(String)}.

@param relativePath The relative path which is to be normalized.

@return The normalized path. An empty path if the path was null.

@throws MalformedLocationException Thrown if the normalized path starts with an upwards path element ("..").