SlaveContext slaveContext, Serializer serializer, Deserializer<T> deserializer )
{
try
{
ChannelBuffer buffer = ChannelBuffers.dynamicBuffer();
<BUG>buffer.writeByte( type.ordinal() );
writeSlaveContext( buffer, slaveContext );
serializer.write( buffer );</BUG>
client.channel.write(buffer);
ChannelBuffer message =

SlaveContext slaveContext, Serializer serializer, Deserializer<T> deserializer )
{
try
{
ChannelBuffer buffer = ChannelBuffers.dynamicBuffer();
buffer.writeByte( type.ordinal() );
if ( type.includesSlaveContext() )
{
writeSlaveContext( buffer, slaveContext );
}
serializer.write( buffer );
client.channel.write(buffer);
ChannelBuffer message =
