Kalendar kalendar = createKalendar(type, calendarID, calendar);
return kalendar;
}
private Kalendar createKalendar(String type, String calendarID, Calendar calendar) {
Kalendar cal = new Kalendar(calendarID, type);
for (Iterator iter = calendar.getComponents().iterator(); iter.hasNext();) {
Component comp = (Component) iter.next();
if (comp instanceof VEvent) {
VEvent vevent = (VEvent)comp;
KalendarEvent calEvent = getKalendarEvent(vevent);
cal.addEvent(calEvent);
} else if (comp instanceof VTimeZone) {
log.info("createKalendar: VTimeZone Component is not supported and will not be added to calender");
log.debug("createKalendar: VTimeZone=" + comp);
} else {
log.warn("createKalendar: unknown Component=" + comp);