I've been learning docx4j and have finally got simple headers, body and tables to be changed through a simple template however the last piece of the puzzle is there is many repeated sections within the document denoted by something similar to the below (so there would be multiple tests and multiple machines failing and possibly more that one nested repeated sections
Test: ${test-id}
Description ${test-description}
Failing Machines:
${machine-name} ...