Hello janhendriks,
following approach could be made to reaching your aim:
- extend DocumentDetailsBean and extend the template Model(method DocumentDetailsBean.getTemplateModel) for your needs
- e.g. add property "users" with all users to the model you wish to have on the right place
- register the newly created extended DocumentDetailsBean within faces-config-custom.xml
- create your template that makes something with those users