improve(rest): change context for execution local variables

contributes to CAM-639