Ensure one injector lookup is done to get the current lang

Fixes #2628
Merge pull request #2628 from jroper/2628-lang-performance

Java templates slow loading language from config