String query = "(incremental call log retrieval)";
ObjectType callLogObjectType = ObjectType.getObjectType(connector(),
"call_log");
String callLogFolderName = getSettingsOrPortLegacySettings(updateInfo.apiKey).callLogFolderName;
try {
Gmail gmail = getGmailService(updateInfo.apiKey);
String email = getEmailAddress(updateInfo.apiKey);
BigInteger originalHistoryId = historyId;
Label callLogLabel = null;
for (Label label : gmail.users().labels().list(email).execute().getLabels()){
if (label.getName().equals(callLogFolderName)){
callLogLabel = label;
}
}
if (callLogLabel == null)