private void fillAppointment(Absence absence, Appointment appointment) throws Exception { // NOSONAR - EWS Java API throws Exception, that's life Person person = absence.getPerson(); appointment.setSubject(absence.getEventSubject()); appointment.setStart(absence.getStartDate()); appointment.setEnd(absence.getEndDate()); appointment.setIsAllDayEvent(absence.isAllDay()); appointment.getRequiredAttendees().add(person.getEmail()); }