using ServiceLocator to retrive PermissionsRegistry
Replace Using PermissionsPluginManager instead of PermissionsRegistry