Java code to add decision table to a DMN Model

As part of my project requirement I need to generate DMN Models using Java code.
I am able to generate a basic DMN Model using this Camunda doc link : Create a Model | docs.camunda.org

But I am failing to understand how can I add a Decision Table to the DMN Model using Java code.

Thanks in advance for any help.

Can you explain this in more detail?
Do you have an existing model that you want to add a new table to?

Thanks for checking back on this Niall.

In Java code you can create an Empty Model and then add DMN into the same.

I have been able to achieve the same. But had to dig in myself looking at the XML generated by manually creating a DMN Model.

I have not been able to find any documentation around it. Please suggest if you have any more documentation as I am still exploring ways to manipulate a DMN.