protected override void InitializeBody()
 {
     if (Message.BodySection is null)
     {
         InitializeEmptyBody();
     }
     else if (Message.BodySection is AmqpValue amqpValue)
     {
         object obj = amqpValue.Value;
         if (obj == null)
         {
             InitializeEmptyBody();
         }
         else if (obj is Map amqpMap)
         {
             map = new AMQPValueMap(amqpMap);
         }
         else
         {
             throw new IllegalStateException($"Unexpected message body value type. Type: {obj.GetType().Name}.");
         }
     }
     else
     {
         throw new IllegalStateException("Unexpected message body type.");
     }
 }
        protected override void InitializeEmptyBody()
        {
            Map       amqpMap = new Map();
            AmqpValue val     = new AmqpValue {
                Value = amqpMap
            };

            map = new AMQPValueMap(amqpMap);
            Message.BodySection = val;
        }