private byte[] serialize( AbstractMessage message ) throws Exception
{
RawDataBuffer buffer = new RawDataBuffer(1024);
MessageSerializer.serializeTo(message, buffer);
return buffer.toByteArray();
}
private AbstractMessage unserialize( byte[] data ) throws Exception
{
RawDataBuffer buffer = new RawDataBuffer(data);