When using multiple repositories and using custom security policies, some policies should apply only to a given repository.
It is possible to get the repository name from the document when checking fro a permission on a document, but it's not possible to do so when providing query transformers.
=> the core session should give the repository name to the security service, that will give it to its policies.