Initial copy of the code generated from the amqp protocol