Persist/unpersist resource changes.