Wrong. This is returning a Cache, not an AccessProvider (which does not exist).

Thus, is there really a reason to expose the dependency of the class ?