private static <T> T deserializeJsonNode(JsonNode jsonNode, TypeReference<T> typeReference) throws HyscaleException {
        if (jsonNode == null || jsonNode.isMissingNode()) {
            return null;
        }
        try {
            return objectMapper.convertValue(jsonNode, typeReference);
        } catch (IllegalArgumentException e) {
            throw new HyscaleException(ServiceSpecErrorCodes.FAILED_TO_PARSE_JSON_TREE, e.getMessage());
        }
    }
@param jsonNode
@param typeReference
@param <T> based on {@link TypeReference}
@return object of class T, null if not found
@throws HyscaleException
service-spec/service-spec-commons/src/main/java/io/hyscale/servicespec/commons/json/parser/JsonTreeParser.java