A young man caught with cocaine was kicked out of the family home for a time for bringing "shame" on his family, a court heard.
Craig Courtney (21), who now volunteers for a charity, was told to hold the cocaine after he built up a drug debt.
Judge John Lindsay ordered Courtney to complete the restorative justice services programme.
The defendant admitted before Tallaght District Court to a drugs offence.
Sergeant Michael Ahern said gardai obtained a warrant and searched the defendant's home at Avondale Gardens in Tallaght on February 16 last year.
During the search, cocaine with a street value of €1,600 was found, some in the kitchen and some on the defendant.
Defence solicitor Michael Hennessy said that, at the time of this offence, Courtney was using cocaine on a regular basis.
Mr Hennessy said the defendant was not addicted to the drug but it was more of a habituation. He is no longer using cocaine, he added.
He said Courtney's mother had taken "an extremely dim view" of her son's behaviour and he was kicked out of the family home for a time for "bringing shame on the family".
Mr Hennessy also said Courtney has "very good family support" and he made "a huge error of judgment".
He currently volunteers with a homeless charity, bringing meals to rough sleepers.