[ticket/382] Correctly specfiy return types of get_template methods

B3P-382