I think the line before
```
ConsumerChannelRegistry.registerConsumerChannel(consumer.getChannel(), getConnectionFactory());
```
should be wrapped to `if (isActive(consumer))` too.
Don't see reason to bind the `channel` to `ThreadLocal`, if its consumer isn't active