BS-9610: extract method to simplify code
BS-9607: export document list in process definition TODO: modify it when
decision will be taken about exporting it also when there is no initial
content