Deprecated ContextManager and api Preferences