public static NodePointer fromNode(Node node) {
        try {
            String value = node.expectStringNode().getValue();
            return NodePointer.parse(value);
        } catch (RuntimeException e) {
            String message = "Expected a string containing a valid JSON pointer: " + e.getMessage();
            throw new ExpectationNotMetException(message, node);
        }
    }
Creates a NodePointer from a Node value.

@param node Node value to parse.
@return Returns the parsed NodePointer.
@throws ExpectationNotMetException if the pointer cannot be parsed.
smithy-model/src/main/java/software/amazon/smithy/model/node/NodePointer.java