// Get the Binded Serializer for it
Serializer serializer = serialization
.findSerializerFor(originalMessage);
// Turn the object into bytes
byte[] bytes = serializer.toBinary(originalMessage);
// Turn the byte[] back into an object,
MyMessage deSerializedMessage = (MyMessage) serializer.fromBinary(
bytes, MyMessage.class);