Word Merge. Document generation on the basis of tokenized template

|I am working on the program to create document on the basis of tokenized template. I have written program to replace simple text but having issue replacing tables. Attaching template here with tow table. We can have more or less. How to I replace table tokens to generate table row with data rows
NewTemplateHT.docx

Can you please provide sample code? I want code for aspose.word java|
NewTemplateHT.docx (17.2 KB)

@hemantthote Find/replace is not the best approach for filling template with data. In Aspose.Words you can use different approaches to fill template with data, for example Mail Merge or LINQ Reporting Engine .

To fill the table with data you can use Mail Merge with regions like described here:
https://docs.aspose.com/words/java/types-of-mail-merge-operations/#mail-merge-with-regions

You can achieve the same using LINQ Reporting Engine using <<foreach>>:
https://docs.aspose.com/words/java/working-with-table-row-data-bands/