Adding @ghalliday's review comment from closed pull request (due to re-targeting to 4.2.2):
---
Better would probably be to delete this line (and the definition of addWorkunitExceptionId) because it isn't actually called from generated code. If it was this change would be created a backward incompatibility.

(I can do that sepaarately if you don't.)