protected final Properties[] extractConsumerProducerProperties(Module module) {
		Properties consumerProperties = new Properties();
		Properties producerProperties = new Properties();
		String consumerKeyPrefix = "consumer.";
		String producerKeyPrefix = "producer.";
		if (module.getDeploymentProperties() != null) {
			for (Map.Entry<String, String> entry : module.getDeploymentProperties().entrySet()) {
				if (entry.getKey().startsWith(consumerKeyPrefix)) {
					consumerProperties.put(entry.getKey().substring(consumerKeyPrefix.length()), entry.getValue());
				}
				else if (entry.getKey().startsWith(producerKeyPrefix)) {
					producerProperties.put(entry.getKey().substring(producerKeyPrefix.length()), entry.getValue());
				}
			}
		}
		return new Properties[] { consumerProperties, producerProperties };
	}
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