if (lastAdvanceMeasurement != null) {
progressValue = lastAdvanceMeasurement.getValue();
progressDate = lastAdvanceMeasurement.getDate();
}
return new TaskDTO(task.getName(), orderElement.getCode(), orderElement
.getOrder().getCode(), orderElement.getOrder().getName(),
DateConverter.toXMLGregorianCalendar(task.getStartDate()),
DateConverter.toXMLGregorianCalendar(task.getEndDate()),
progressValue,
DateConverter.toXMLGregorianCalendar(progressDate),