Issue #578. Access rights objects shouldn't be recreated at each save.
Made the listener stateless.