exceptionCal = new Calendar(); exceptionCal.getProperties().add(masterCal.getProductId()); exceptionCal.getProperties().add(masterCal.getVersion() != null? masterCal.getVersion(): Version.VERSION_2_0); exceptionCal.getProperties().add(masterCal.getCalendarScale() != null? masterCal.getCalendarScale(): CalScale.GREGORIAN); exceptionCal.getComponents().add(event);
exceptionCal = new Calendar(); exceptionCal.getProperties().add(masterCal.getProductId()); exceptionCal.getProperties().add(masterCal.getVersion() != null? masterCal.getVersion(): Version.VERSION_2_0); exceptionCal.getProperties().add(masterCal.getCalendarScale() != null? masterCal.getCalendarScale(): CalScale.GREGORIAN); exceptionCal.getComponents().add(event);