The mother of a teenager sentenced to six years for a violent burglary screamed at a judge that he had earlier handed down a lighter sentence to a child abuser.
Judge Martin Nolan said the 17-year-old was the ringleader behind a raid in which a gang of five teenagers held a knife to a student and threatened to assault and rape his girlfriend.
He said six years' detention was the minimum he could impose. After the sentence was read out at Dublin Circuit Criminal Court, his mother was arrested for contempt of court after shouting out at the judge.
During scuffles with prison officers, her son also became violent, while the woman shouted: "We will spend the summer together son."
The woman had earlier been described as an alcoholic whose son was taken into care after his father died in 2007.
The woman continued screaming while both her and the teenager were escorted down to the cells, saying: "You gave a pervert four years for raping children", referring to an earlier sex assault case.
James Rooney (32), of Kelly Park, Lusk, was earlier sentenced to eight years, with four suspended, for five counts of sexual abuse involving girls aged between eight and 13.
Garda Ronan Hobbs said the teenager was one of five men who forced their way into a house on Botanic Avenue shortly after 11pm on April 27, 2011.
They held a kitchen knife to the neck of Alan Stewart, a civil engineering student, who was visiting his girlfriend Martha McLoughlin. Three of the men forced Mr Stewart at knifepoint to go to a cash machine and told him the other teenagers would rape his girlfriend at her house if he didn't co-operate.
After the man had withdrawn the maximum daily limit of €600 the teenagers forced him to drive around until after midnight so they could get more cash from his bank account.
In a victim impact statement he said his relationship broke up after the attack and he quit his college studies.
Three of the attackers, who cannot be named for legal reasons, pleaded guilty to charges of aggravated burglary, false imprisonment, hijacking and robbery.
A 19-year-old co-accused who kept Ms McLoughlin in her flat and threatened to stab Mr Stewart was sentenced to five years' detention. Judge Nolan said a third accused, aged 17, had tried to leave the house but was told the girl would be hurt if he left. He sentenced this youth to five years suspended.