class JsonHandler {

    public static JsonNode findNode(JsonNode rootNode, String path) {
        if (rootNode == null || Strings.isNullOrEmpty(path)) {
            return MissingNode.getInstance();
        }

        String nodeNames[] = path.split(REG_EXP_JSONPATH_SEPARATOR);

        JsonNode currentNode = rootNode;
        for (String nodeName : nodeNames) {

            currentNode = currentNode.path(nodeName);
            if (currentNode.isMissingNode()) {
                return currentNode;
            }
        }

        return currentNode;
    }

    private  JsonHandler();

}