It's almost universally bad practice to reference your TMS at runtime. There are always exceptions in G11N, but typically the best route is to either dump your translations into a property file or cache the translations somehow (in memory or in a DB, etc)