[PLAT-6126] Removed assumption that reference data provider is always in the context.