Adapt to the Pulsar-Rest-Api 0.0.4.

Can you revert formatting for sake of review?