private void bindMessageConsumer(MessageChannel inputChannel, String inputChannelName,
			String group, Properties consumerProperties) {
		if (BusUtils.isChannelPubSub(inputChannelName)) {
			String channelToBind = inputChannelName;
			if (this.messageBus.isCapable(Capability.DURABLE_PUBSUB)) {
				channelToBind = BusUtils.addGroupToPubSub(group, inputChannelName);
			}
			messageBus.bindPubSubConsumer(channelToBind, inputChannel, consumerProperties);
		}
		else {
			messageBus.bindConsumer(inputChannelName, inputChannel, consumerProperties);
		}
	}
Bind input/output channel of the module's message consumer/producers to {@link MessageBus}'s message
source/target entities. The producer must be bound first so that messages can immediately
start flowing from the consumer.

@param module the module whose consumer and producers to bind to the {@link MessageBus}.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/AbstractMessageBusBinderPlugin.java