In court, the judge pulled something out of a yellow bag and caused laughter.