http://labs.sixdimensions.com/blog/2014-04-07/cq-dialog-dynamically-generate-rootpath/