Judge ordered to attend anger management class after berating domestic violence victim