Message in = exchange.getIn();
JsonObject jsonObject = in.getBody(JsonObject.class);
if (jsonObject != null) {
LOG.debug("Publishing to: {} with JsonObject: {}", address, jsonObject);
eventBus.publish(address, jsonObject);
return;
}
JsonArray jsonArray = in.getBody(JsonArray.class);
if (jsonArray != null) {
LOG.debug("Publishing to: {} with JsonArray: {}", address, jsonArray);