Adapt to the Pulsar-Rest-Api 0.0.4.

Formatting is off.