return null;
}
public static TaskStatus getTaskStatus (StatusResource status){
if (status != null){
TaskStatus taskStatus = new TaskStatus();
if (status.getState() == null || status.getState().equals("")){
status.setState("UNKNOWN");
}
taskStatus.setExecutionState(TaskState.valueOf(status.getState()));
taskStatus.setTimeOfStateChange(status.getStatusUpdateTime().getTime());
return taskStatus;
}
return null;
}