A man who masturbated as he sat in his vehicle in a car park has been ordered to take part in a restorative justice programme.
Phelim Turley (44) was spotted by a shopper who was walking back to her car.
He described his behaviour as "a moment of madness".
Judge Paula Murphy ordered him to complete the restorative justice programme and adjourned the matter to a date in July for finalisation.
The defendant, with an address at Woodvale Garth, Clonsilla, had admitted to masturbating in a public place at the Yellow Car Park at Blanchardstown Shopping Centre on August 21, 2017.
Sergeant Maria Callaghan told Blanchardstown District Court that the woman was returning to her car at around 7pm when she saw Turley masturbating in his.
She noted the registration and told security staff, who contacted gardai.
Sgt Callaghan said gardai later spoke to Turley, who was interviewed and admitted the offence.
The court heard he had never been in trouble before.
Defence solicitor Valerie Buckley said Turley, a father-of-one, went through a difficult divorce last year and his father had died.
She also said Turley was ashamed and regretted his behaviour, which she described as a "moment of madness".
The matter was before the court after Judge Murphy ordered a probation report.
Ms Buckley said the report was "quite lengthy" and was "very positive".
Judge Murphy agreed the report was positive, but said she wanted Turley to engage with restorative justice before finalising the matter.
Ms Buckley said the defendant was willing to complete the programme.