Thanks, this works, I adapted it to the
com.adobe.granite.ui.components.ds.DataSource
without needing a servlet. However, I am not able to replicate the child nodes to the /conf path when I publish. This probably should be a separate question though.