Added a new scope for template getting and setting

[#80341226]