docs: function replacePermission() {
    var permission = getPermission(
        mlutil.asArray.apply(null, arguments)
        );
    if (permission === null) {
      throw new Error('permissions.replace() takes the role name and one or more insert|update|read|execute capabilities');
    }
    return replace(
        '/permissions[node("role-name") eq "'+permission['role-name']+'"]',
        permission
        );
  }