XmlPermissionsDetector (in progress)