String uidC = "THIS_is_A_fake_UID_4321"; ((CalendarEntryDTO)entryB).setOutlook(true); ((CalendarEntryDTO)entryB).setOutlookUID(uidB); ((CalendarEntryDTO)entryC).setOutlook(true); ((CalendarEntryDTO)entryC).setOutlookUID(uidC); CALENDAR_SERVICE.updateCalendarEntry(entryB); CALENDAR_SERVICE.updateCalendarEntry(entryC);