}
if (appointmentDto.getReminderMinutesBeforeStart() != null) {
final EventReminder reminder = new EventReminder();
reminder.setMinutes(appointmentDto.getReminderMinutesBeforeStart());
reminder.setMethod("popup");
final Reminders reminders = new Reminders();
reminders.setUseDefault(false);
reminders.setOverrides(Collections.singletonList(reminder));
event.setReminders(reminders);
}
if (appointmentDto.getRecurrenceType() != null) {
String recurrencePattern = "RRULE:";
if (appointmentDto.getRecurrenceType() == RecurrenceType.DAILY) {