[CLEANUP] Use Application Context of CMS 6.2 instead of custom implementation
[BUGFIX] Use global variable