return result;
}
private void removeEmptyConsolidation(TaskElement taskElement) {
if ((taskElement.isLeaf()) && (!taskElement.isMilestone())) {
Consolidation consolidation = ((Task) taskElement)
.getConsolidation();
if ((consolidation != null)
&& (isEmptyConsolidation(consolidation))) {
if (!consolidation.isNewObject()) {
try {
consolidationDAO.remove(consolidation.getId());
} catch (InstanceNotFoundException e) {
throw new RuntimeException(e);
}
}
((Task) taskElement).setConsolidation(null);