Sorry for the double posting. I first opened a Feature Request and attached the patch that implements this. Then I realized that the Tracker allows creating a Patch type entry.
The original feature request is #2999680. It contains a fuller explanation of the patch. The patch is also attached here for reference.
Closing; don't need two tickets open for the same issue.
Ticket moved from /p/dnsjava/patches/18/