/** See if the master event has an override with the given recurrence id. * If not optionally create one. * * @param rid * @param create - true to creat emissing override. * @return EventInfo for override * @throws CalFacadeException */ public EventInfo findOverride(final String rid, final boolean create) throws CalFacadeException { if (overrides != null) { for (EventOverride eo: overrides) { if (eo.getEvent().getRecurrenceId().equals(rid)) { return eo.getEventInfo(); } } } if (!create) { return null; } BwEventProxy proxy = BwEventProxy.makeAnnotation(getEvent(), null, true); proxy.setRecurring(new Boolean(false)); EventInfo oei = new EventInfo(proxy); proxy.setRecurrenceId(rid); oei.setNewEvent(true); addOverride(oei); return oei; }