final ValueReply reply = (ValueReply)message;
serializer.write(reply.context, writer);
serializer.write(reply.value, writer);
} else {
writer.writeByte(EXCEPTION_REPLY);
final ExceptionReply reply = (ExceptionReply)message;
serializer.write(reply.context, writer);
serializer.write(reply.throwable, writer);
}
}