if (showDependencies) {
taskDAO.reattach(task);
for (Dependency each : dependencies) {
final OrderElement orderElement = each.getOrigin()
.getOrderElement();
DependencyWorkingArrangementDTO dependencyDTO = new DependencyWorkingArrangementDTO(
orderElement.getName(), orderElement.getCode(), each
.getType().toString(), orderElement
.getAdvancePercentage());
WorkingArrangementPerOrderDTO dto = new WorkingArrangementPerOrderDTO(
task, taskStatus, dependencyDTO);