public static function fromAMQPMessage(AMQPMessage $AMQPMessage)
    {
        $msg = new Message(
            json_decode($AMQPMessage->body, true),
            $AMQPMessage->delivery_info['routing_key'],
            $AMQPMessage->get_properties()
        );
        $msg->setAMQPMessage($AMQPMessage);
        return $msg;

    }