Add getContext service template function
Merge pull request #1176 from control-center/feature/ZEN-14857

Add getContext service template function