I'm looking at an old implementation that makes use of:
where broker is the instance of com.tridion.broker.Broker
This is deprecated, and also relies on having
cd_broker_conf.xml, which we'd rather not. The storage API offers the possibility of accessing the current configuration, but that seems like re-implementing code that is probably already in Tridion. Is there a straightforward way to get the document root?