[cleanup] Apply codestyle
XWIKI-9102: Add API to easily create a DocumentReference from a LocalDocumentReference
XWIKI-7684: AbstractDocumentConfigurationSource#getClassReference() should return an LocalEntityReference
Fix typo
Add test