private SubscribeRequest createSubscribeRequest(NotificationTopic topic, String consumerErp) { return new ObjectFactory() .createSubscribeRequest() .withConsumerEpr(consumerErp) .withTopic(topic.name().toLowerCase()); }
private UnsubscribeRequest createUnsubscribeRequest(NotificationTopic topic, String id) { return new ObjectFactory() .createUnsubscribeRequest() .withSubscriptionID(id) .withTopic(topic.name().toLowerCase()); }