Added support for the "state" attribute to indicate whether the object reflects the "before" or "after" state for the operation.