yes the EAR case is a bit harder. Also OSGi is a bit tricky.
In my javaconfig proposal I have moved this out into a SPI which is pluggable.
The only requirement is that you can get the config for 'your application' via
ConfigProvider#getConfig().
If this is internally done via a
added @Source and @Filter as markers (was breaking applications otherwise),
pushed the basic plain proxying too. Only tested with OWB for now but seems
not bad.
The storage change is more impacting cause of ear case which is not
protable at all so wonder if we can do anything about it without