}
}
JsonNode errorActionValue2 = actionValue2.get("errorAction");
if (errorActionValue2 != null) {
JobErrorAction errorActionInstance = new JobErrorAction();
actionInstance.setErrorAction(errorActionInstance);
JsonNode typeValue2 = errorActionValue2.get("type");
if (typeValue2 != null) {
JobActionType typeInstance2;
typeInstance2 = SchedulerClientImpl.parseJobActionType(typeValue2.getTextValue());
errorActionInstance.setType(typeInstance2);
}
JsonNode requestValue3 = errorActionValue2.get("request");
if (requestValue3 != null) {
JobHttpRequest requestInstance = new JobHttpRequest();
errorActionInstance.setRequest(requestInstance);
JsonNode uriValue = requestValue3.get("uri");
if (uriValue != null) {
URI uriInstance;
uriInstance = new URI(uriValue.getTextValue());
requestInstance.setUri(uriInstance);
}
JsonNode methodValue = requestValue3.get("method");
if (methodValue != null) {
String methodInstance;
methodInstance = methodValue.getTextValue();
requestInstance.setMethod(methodInstance);
}
JsonNode headersSequenceElement = ((JsonNode) requestValue3.get("headers"));
if (headersSequenceElement != null) {
Iterator<Map.Entry<String, JsonNode>> itr = headersSequenceElement.getFields();
while (itr.hasNext()) {
Map.Entry<String, JsonNode> property = itr.next();
String headersKey3 = property.getKey();
String headersValue3 = property.getValue().getTextValue();
requestInstance.getHeaders().put(headersKey3, headersValue3);
}
}
JsonNode bodyValue = requestValue3.get("body");
if (bodyValue != null) {
String bodyInstance;
bodyInstance = bodyValue.getTextValue();
requestInstance.setBody(bodyInstance);
}
}
JsonNode queueMessageValue3 = errorActionValue2.get("queueMessage");
if (queueMessageValue3 != null) {
JobQueueMessage queueMessageInstance = new JobQueueMessage();
errorActionInstance.setQueueMessage(queueMessageInstance);
JsonNode storageAccountValue = queueMessageValue3.get("storageAccount");
if (storageAccountValue != null) {
String storageAccountInstance;
storageAccountInstance = storageAccountValue.getTextValue();