endpoint.getConfiguration().getApiVersion(), PayloadFormat.JSON, component.getSession());
// don't forget to start the client
ServiceHelper.startService(restClient);
try {
PushTopicHelper helper = new PushTopicHelper(config, topicName, restClient);
helper.createOrUpdateTopic();
} finally {
// don't forget to stop the client
ServiceHelper.stopService(restClient);
}
}