Deprecated Context class for private API