ExchangeRegistry exchangeRegistry, AMQProtocolSession protocolSession,
AMQMethodEvent<BasicCancelBody> evt) throws AMQException
{
final AMQChannel channel = protocolSession.getChannel(evt.getChannelId());
final BasicCancelBody body = evt.getMethod();
channel.unsubscribeConsumer(protocolSession, body.consumerTag);
if(!body.nowait)
{
final AMQFrame responseFrame = BasicCancelOkBody.createAMQFrame(evt.getChannelId(), body.consumerTag);
protocolSession.writeFrame(responseFrame);
}