We have a Velocity template for a receipt. The template includes the Tax Identification Number, the value of which will be substituted at the time of receipt generation. This is to ensure the TIN of the real license holder is printed on the receipt.
How can we prevent the end user from hardcoding the TIN number in the template itself? Is there a way for Velocity to throw an exception if it can't find a field in the template at the time of merging?