return new OrderDTO(name, code, initDate, deadline,
description, labels, materialAssignments,
advanceMeasurements, criterionRequirements, children,
dependenciesConstraintsHavePriority, calendarName);
} else { // orderElement instanceof OrderLineGroup
return new OrderLineGroupDTO(name, code, initDate, deadline,
description, labels, materialAssignments,
advanceMeasurements, criterionRequirements, children);
}
}
}