Use old context API in 2.0-2.2 branch