def METHOD_NAME(self, resource_id, key, new_value, username):
    try:
        self._get_action('hdx_qa_resource_patch')(
            {
                'model': model, 'session': model.Session,
                'user': username,
            },
            {'id': resource_id, key: new_value}
        )
    except NotAuthorized as e:
        pass
    return self._get_action('package_show')({}, {'id': self.PACKAGE_ID})