public Message invoke(Message msg) {
Object payload = msg.getBody();
if (payload == null) {
throw new RuntimeException("Message body is null");
}
Writeable writeable = null;
String incomingBrokerID = null;
if (payload.getClass().isArray()) {
Object[] bodyArray = (Object[])payload;
if (bodyArray.length == 3) {
writeable = getWriteableFromByteArray((byte[])bodyArray[1]);