[JBTM-1931] inject TM instead of looking it up as a resource