r4336 new function judgeContext introduced.