CONTRIB-4881 replaces deprecated get_context_instance() calls