{
_log.debug("BasicCancel: for:" + body.getConsumerTag() +
" nowait:" + body.getNowait());
}
channel.unsubscribeConsumer(body.getConsumerTag());
if (!body.getNowait())
{
MethodRegistry methodRegistry = session.getMethodRegistry();
BasicCancelOkBody cancelOkBody = methodRegistry.createBasicCancelOkBody(body.getConsumerTag());
channel.sync();