adding deprecated annotation to LoaderContext class