The changes made to support modular configuration were intended to be completely backward compatible, so the family of methods that are *not* modular, eg,
will attempt to retrieve a property in dspace.cfg named 'foo.bar', which is exactly what they used to do.
There are a *new* set of companion methods that are 'modular' :
And likewise, for the record, if you port to the ConfigurationService it would be
new DSpace().getConfigurationService().getProperty("foo.bar"); prefixing is managed in parsing the key, not in an additional parameter in the method signature. Likewise all the details below apply to the configuration service as well.
I realise it's a bit late for this, but really what I would much rather see is:
a) New style ConfigurationService should be injected by Spring, not retrieved from a method call (either static or from a new Object).
b) Accessing a configuration for a 'module' should be distinct in itself. eg: