[DCOM-96] Fix generator usage.