/// <summary>
        ///     Processes the attendees.
        /// </summary>
        private static void ProcessAttendees(iCalEvent calendarEvent, Appointment appointment)
        {
            if (appointment == null || calendarEvent == null)
            {
                return;
            }

            /////
            // Get the attendees.
            /////
            var attendees = appointment.EventEmailAttendees;

            if (attendees == null || attendees.Count <= 0)
            {
                return;
            }

            /////
            // Attendees.
            /////
            foreach (var emailContact in GetAttendeesAddresses(attendees))
            {
                var attendee = new Attendee(emailContact.Name, emailContact.EmailContactDisplayName, ParticipantRole.RequiredParticipant);
                calendarEvent.Attendees.Add(attendee);

                /////
                // RSVP contact.
                /////
                attendee.Rsvp = true;
            }
        }
        /// <summary>
        ///     Processes the organizer.
        /// </summary>
        /// <exception cref="System.ArgumentNullException">
        ///     calendarEvent
        ///     or
        ///     inbox
        /// </exception>
        private static void ProcessOrganizer(iCalEvent calendarEvent, string emailAddress)
        {
            if (calendarEvent == null)
            {
                throw new ArgumentNullException("calendarEvent");
            }

            if (String.IsNullOrEmpty(emailAddress))
            {
                throw new ArgumentNullException("emailAddress");
            }

            /////
            // Create the organizer attendee.
            /////
            var organizer = new Organizer
            {
                CommonName = "Software Platform",
                Value      = new Uri(string.Format("MAILTO:{0}", emailAddress))
            };

            calendarEvent.Organizer = organizer;
        }