if (!(message instanceof DataAwareMessage)) {
throw new IllegalArgumentException("Expecting: DataAwareMessage, Found: "
+ message.getClass().getSimpleName());
}
DataAwareMessage dataAwareMessage = (DataAwareMessage) message;
Data messageData = dataAwareMessage.getMessageData();
String publisherUuid = message.getPublishingMember().getUuid();
PortableMessage portableMessage = new PortableMessage(messageData, message.getPublishTime(), publisherUuid);
endpoint.sendEvent(portableMessage, callId);
}