httpTransport = new NetHttpTransport.Builder().setProxy(proxy).build();
} else {
httpTransport = new NetHttpTransport.Builder().build();
}
LOG.info("Connecting to Google Calendar...");
final Credential credential = authorize();
client = new Calendar.Builder(httpTransport, jsonFactory, credential)
.setApplicationName("Exchange Sync/1.0")
.build();
calendarId = getCalendarId(settings.getUserSettings().googleCalendarName());
LOG.info("Connected to Google Calendar.");