I find that objectively looking at what is best for the children causes me to set aside my pride and sense of entitlement and accept a situation that otherwise might cause me to retaliate in anger.
Remembering that the unkind things that my partner occasionally says are a byproduct of the stress she is feeling and not indicative of who I really am as a person, helps me take things in stride. Her opinion is skewed by her current emotional state, not necessarily by any legitimate objections about me and my personality.
Also, even if I have legitimate reason to become annoyed or upset, who cares? What do I need to prove at this point if I am indeed resolved to be divorced from this person? What do I stand to gain but hard feelings and communication characterized by friction?
Also, remembering that I too will act at times based on my current emotional state allows me to cut her slack as well as to forgive myself for saying or doing things I may regret.