A rollercoaster hearing in which a judge advocate threatened to have a defence lawyer charged with contempt of court ended…