event.setDescription(appointmentDto.getDescription());
event.setStart(convertToEventDateTime(appointmentDto.getStart(), appointmentDto.isAllDay()));
event.setEnd(convertToEventDateTime(appointmentDto.getEnd(), appointmentDto.isAllDay()));
event.setLocation(appointmentDto.getLocation());
if (appointmentDto.getOrganizer() != null && appointmentDto.getOrganizer().getEmail() != null) {
final Organizer organizer = new Organizer();
organizer.setDisplayName(appointmentDto.getOrganizer().getName());
organizer.setEmail(appointmentDto.getOrganizer().getEmail());
event.setOrganizer(organizer);
}
if (appointmentDto.getAttendees() != null) {
final List<EventAttendee> attendees = new ArrayList<EventAttendee>();
for (final PersonDto attendee : appointmentDto.getAttendees()) {