Map<String, String> properties = brokerConfiguration.getProperties();
BrokerClient brokerClient =
new BrokerClient(properties.get(BrokerConstants.BROKER_CONF_WS_PROP_URI),
properties.get(BrokerConstants.BROKER_CONF_WS_PROP_USERNAME),
properties.get(BrokerConstants.BROKER_CONF_WS_PROP_PASSWORD));
brokerClient.subscribe(topicName, httpEpr);
} catch (BrokerClientException e) {
throw new BrokerEventProcessingException("Can not create the broker client", e);
} catch (AuthenticationExceptionException e) {
throw new BrokerEventProcessingException("Can not authenticate the broker client", e);