// is a query configured in the endpoint?
if (config.getSObjectQuery() != null) {
// Note that we don't lookup topic if the query is not specified
// create REST client for PushTopic operations
SalesforceComponent component = endpoint.getComponent();
RestClient restClient = new DefaultRestClient(component.getConfig().getHttpClient(),
endpoint.getConfiguration().getApiVersion(), PayloadFormat.JSON, component.getSession());
// don't forget to start the client
ServiceHelper.startService(restClient);
try {