protected void updateDirective(ObjectNode serviceSpecObject, Object updatedObject) {
		if (serviceSpecObject == null) {
			return;
		}
		String[] path = getPath();
		// get parent node
		JsonNode jsonNode = getNodeAtPath(serviceSpecObject, Arrays.copyOfRange(path, 0, path.length - 1));
		if (jsonNode == null) {
			return;
		}
		String field = path[path.length - 1];
		if (jsonNode.get(field) == null) {
			return;
		}
		ObjectMapper mapper = ObjectMapperFactory.jsonMapper();
		mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
		ObjectNode parentObjNode = (ObjectNode) jsonNode;
		parentObjNode.replace(field, mapper.valueToTree(updatedObject));
	}
Replaces updated object in serviceSpecObject at path provided by
{@link #getPath()}

@param serviceSpecObject
@param updatedObject
workflow-controller/controller-service/src/main/java/io/hyscale/controller/directive/ServiceSpecDirectiveUpdateHandler.java