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