How can we read registry items inside a Class Mediator? We have 100+ proxy services that use a class mediator, and to access a property from a registry, we have to add a property mediator before our class mediator to each proxy service, like this:
<-- load the property via the Property Mediator -->
<property expression="get-property('registry','conf:someProp')" name="SOME_PROP" scope="default" type="STRING"/>
<-- then we access the "SOME_PROP" by using MessageContext#getProperty()
<class name="com.example.project.mediators.SomeMediator"/>
This would be difficult to maintain. Is there a better way?