public final static CalendarExceptionTypeDTO toDTO(
CalendarExceptionType calendarExceptionType) {
EffortDuration duration = calendarExceptionType.getDuration();
int seconds = (duration != null) ? duration.getSeconds() : 0;
CalendarExceptionTypeColorDTO colorDTO = CalendarExceptionTypeColorConverter
.toDTO(calendarExceptionType.getColor());
return new CalendarExceptionTypeDTO(calendarExceptionType.getCode(),
calendarExceptionType.getName(), colorDTO,
calendarExceptionType.isOverAssignableWithoutLimit(),