A young father who tried to steal a motorbike was caught after his DNA was found on the petrol tank.
Daniel Murphy (20) caused €200 worth of damage to the Honda when he pulled the ignition wire out in an attempt to take it, Blanchardstown District Court was told.
The incident happened at an underground car park at Surehaven in the Phoenix Park on October 3, 2017.
Det Gda Bernard Connaugh- ton said a sample was taken off the petrol tank and it matched Murphy's DNA.
Gda Connaughton said Murphy did not manage to get away with the motorbike.
As well as damaging it, the defendant, of Rathvilly Drive, Finglas, admitted driving without insurance or a licence last August 24.
Murphy further admitted possession of cannabis worth €40 at Virginia Drive, Finglas, on March 8 last year.
On that date, Murphy and a second youth were seen on CCTV as they discarded a bag under a car.
It contained four Samsung tablets worth €657.
The court heard Murphy had 39 previous convictions, mostly for theft and road traffic matters.
Judge Paula Murphy imposed a six-month prison sentence, suspending the final two months for six months.
She also imposed a separate three-month sentence, which she suspended for 12 months, and disqualified Murphy from driving for 10 years.
He had a difficult time as a teenager, the court heard, and had suffered from anxiety and depression while engaging in anti-social behaviour.
Defence solicitor Damien Coffey said Murphy's life was "totally out of control" during the past year.
He first showed signs of difficulties at 10. His parents separated when he was 11 and by 13 he was out of control at school.
Mr Coffey added that Murphy had a partner and two children. He needed residential treatment and was trying to turn his life around.
He asked Judge Murphy to structure a sentence to allow his client to get the help he needed.