Calendar endDateOfWeek = getEndDateOfWeek();
Date toDate = endDateOfWeek.getTime();
toDate.setTime(toDate.getTime()-1);
endDateOfWeek.setTime(toDate);
List<Event> allEvents = getEventInMonth(getBeginDateOfWeek().getTimeInMillis(), endDateOfWeek.getTimeInMillis());
<BUG>if (isInSpace()) {
List<String> publicCalendars  = Arrays.asList(getPublicCalendars());
Iterator<Event> iter = allEvents.iterator();
while (iter.hasNext()) {
Event evt = iter.next();
if (!publicCalendars.contains(evt.getCalendarId())) {
iter.remove();
}
}</BUG>
}

Calendar endDateOfWeek = getEndDateOfWeek();
Date toDate = endDateOfWeek.getTime();
toDate.setTime(toDate.getTime()-1);
endDateOfWeek.setTime(toDate);
List<Event> allEvents = getEventInMonth(getBeginDateOfWeek().getTimeInMillis(), endDateOfWeek.getTimeInMillis());
if (isInSpace()) {
filterNonSpaceEvent(allEvents);
}
