Support ContextWrapper by replacing instanceof checks with token checks

Test: all tests pass

Bug: 258065175

Change-Id: I3dd08929c0ba420d5fa71f0e0fdbc8ca7cc8abb5
1 file changed