treerow.appendChild(nameTreecell);
// append start date of the current work week
Treecell startDateTreecell = new Treecell();
Label startDateLabel = new Label("---");
CalendarData version = baseCalendar.getCalendarData(LocalDate
.fromDateFields(new Date()));
CalendarData prevVersion = baseCalendar.getPrevious(version);
if ((prevVersion != null)
&& (prevVersion.getExpiringDate() != null)) {
startDateLabel.setValue(prevVersion
.getExpiringDate().toString());
}
startDateTreecell.appendChild(startDateLabel);
treerow.appendChild(startDateTreecell);