throw new SalesforceException("API call timeout!", null);
}
if (callback.getException() != null) {
throw callback.getException();
}
QueryRecordsPushTopic records = OBJECT_MAPPER.readValue(callback.getResponse(),
QueryRecordsPushTopic.class);
if (records.getTotalSize() == 1) {
PushTopic topic = records.getRecords().get(0);
LOG.info("Found existing topic {}: {}", topicName, topic);
// check if we need to update topic query, notifyForFields or notifyForOperations
if (!query.equals(topic.getQuery())
|| (config.getNotifyForFields() != null