if (settings.getUserSettings().syncAppointments()) {
// Initialize Google source
final CalendarSource googleSource = new GoogleCalendarSourceImpl(settings);
// Synchronize appointments
final SyncCalendarsImpl syncCalendars = new SyncCalendarsImpl(exchangeSource, googleSource);
syncCalendars.syncAll(stats);
}
if (settings.getUserSettings().syncTasks()) {
// Initialize RTM source
final TaskSource rtmSource = new RtmTaskSourceImpl(settings);