Replaced xmldb:get-permissions(), and xmldb:permissions-to-string(),
which are deprecated, with security:get-resource-permissions().