[AS7-6310] Add RuntimePermissions and permission checks to access the Re...

...motingContext if running with a SecurityManager.