deprecated get_context_instance()  

Moodle 2.4+
https://tracker.moodle.org/browse/MDL-34472