LPS-50229 Source formatting

@hhuijser @zsoltbalogh The SF commits by Hugo should not be backported because they break backwards compatibility \n @migue This is the code I mentioned to you a few days ago that we will need to refactor further for 7 to use the new BaseModelPermissionChecker registry