A young man who was part of a gang that followed a teenager into a pizza shop where he was attacked with a knife got involved out of a "misplaced sense of loyalty".
Neletu Chiriac (22) kicked the victim when he was on the floor and held on to him while a juvenile stabbed him.
The injured party needed two operations for a stab wound to his arm following the incident, and spent four days in hospital, Blanchardstown District Court was told.
Judge David McHugh imposed a four-month sentence suspended for two years.
Chiriac, of Rosedale Crescent, Dublin 15, admitted seriously assaulting the teenager at Domino's Pizza, Main Street, Ongar, at around 8pm on May 15 last year.
Gda Peter Bernard said there had been an incident between the victim and a person known to Chiriac a short time earlier.
The victim had gone to the pizza shop but Chiriac, the person known to him and a third man had come after him.
Gda Bernard said the victim, who was only 16 at the time, tried to hold the door closed but the men managed to get in.
Chiriac came from behind the teenager, held him and then kicked him when he was on the floor.
The victim received a stab wound from a knife during the course of the assault, Gda Bernard said. He was taken to hospital where he had two operations on his left forearm.
Chiriac did not stab the victim, nor was he aware that a knife had been brought to the scene.
Gda Bernard said the other two attackers had been dealt with in another forum.
The defendant had no previous convictions, the court heard.
In his victim impact statement, the teenager said he had a scar on his forearm and remained fearful of the defendant.
Defence solicitor Liam Cado- gan said Chiriac was not a viol- ent person and this incident was totally uncharacteristic.
Mr Cadogan also assured the victim he had no reason to fear for his safety or any reprisals.
Chiriac also wished to apologise to the victim, the solicitor said.