Use a profile or similar to only include the Environment conditionally (currently in module-common.xml.
one thing to keep in mind: we talked about having a properties file for XD that configured the RingBuffer et al in a non-default way
e.g. no event loop Dispatchers…a ThreadPoolDispatcher with a large thread pool size (50 threads? 100?)…and maybe even two RingBufferDispatchers: input and output
so we might want to change from strictly a default Environment bean to an EnvironmentFactoryBean with a specific configuration…thinking about it now I maybe should add a namespace element for the Environment