public ViewEventSpaceOccupationsBean(YearMonthDay day, Space allocatableSpace) {
setAllocatableSpace(allocatableSpace);
if (day != null) {
setYear(new Partial(DateTimeFieldType.year(), day.getYear()));
setMonth(new Partial(DateTimeFieldType.monthOfYear(), day.getMonthOfYear()));
YearMonthDay monday = day.toDateTimeAtMidnight().withDayOfWeek(MONDAY_IN_JODA_TIME).toYearMonthDay();
if ((monday.getMonthOfYear() < day.getMonthOfYear()) || (monday.getYear() < day.getYear())) {
monday = monday.plusDays(Lesson.NUMBER_OF_DAYS_IN_WEEK);
}