The behaviour of the judge is intentionally provocative and must be dealt with publicly, not behind doors.  A presumably intelligent man is acting childishly,pushing the envelope, letting all know he shares the views of a misogynist, bigot and bully.  He very well knew what he was doing - we're likely to see more of this and it needs to be stopped in its tracks.