Adapt to pulsar-rest-api 0.0.4

@tomaszdurka please review.