Interesting idea. The issue is when replacing bean definitions, e.g. overriding the codec in the message bus. The parent context initialization is already complete. You can override the bean definition in the child, but this would require a new messageBus definition as well. The OOTB messageBus and codec would be instantiated in the parent but XD would reference the overridden intstance.