}
}
JsonNode statusValue = responseDoc.get("status");
if (statusValue != null) {
JobStatus statusInstance = new JobStatus();
jobInstance.setStatus(statusInstance);
JsonNode lastExecutionTimeValue = statusValue.get("lastExecutionTime");
if (lastExecutionTimeValue != null) {
Calendar lastExecutionTimeInstance;
lastExecutionTimeInstance = DatatypeConverter.parseDateTime(lastExecutionTimeValue.getTextValue());
statusInstance.setLastExecutionTime(lastExecutionTimeInstance);
}
JsonNode nextExecutionTimeValue = statusValue.get("nextExecutionTime");
if (nextExecutionTimeValue != null) {
Calendar nextExecutionTimeInstance;
nextExecutionTimeInstance = DatatypeConverter.parseDateTime(nextExecutionTimeValue.getTextValue());
statusInstance.setNextExecutionTime(nextExecutionTimeInstance);
}
JsonNode executionCountValue = statusValue.get("executionCount");
if (executionCountValue != null) {
int executionCountInstance;
executionCountInstance = executionCountValue.getIntValue();
statusInstance.setExecutionCount(executionCountInstance);
}
JsonNode failureCountValue = statusValue.get("failureCount");
if (failureCountValue != null) {
int failureCountInstance;
failureCountInstance = failureCountValue.getIntValue();
statusInstance.setFailureCount(failureCountInstance);
}
JsonNode faultedCountValue = statusValue.get("faultedCount");
if (faultedCountValue != null) {
int faultedCountInstance;
faultedCountInstance = faultedCountValue.getIntValue();
statusInstance.setFaultedCount(faultedCountInstance);
}
}
JsonNode stateValue = responseDoc.get("state");
if (stateValue != null) {