Implement the `pushContext` & `popContext` methods.