Advocate clashes with judge at court hearing