A YOUNG man caught with ecstasy tablets told a garda to "f**k off, you're not searching me" when he was stopped by officers, a court heard.
James Marry (25) was found with the tablets, valued at €300, hidden in his boxer shorts after he struggled with gardai and tried to run away.
Judge Dermot Dempsey ordered a report to see if Marry is suitable to complete 140 hours community service in lieu of four months in prison.
The defendant, with an address at Bath Road in Balbriggan, admitted before Swords District Court to possession of drugs for sale or supply.
Garda Brendan O'Brien said he was on mobile patrol around 9.40pm on October 22, 2010 when he came across Marry acting suspiciously.
Gda O'Brien said he told Marry he was going to search him for drugs, but the defendant told him "f**k off, you're not searching me".
The garda said Marry tried to run away, there was a struggle, and he continued to be abusive and aggressive.
Marry was then handcuffed and taken to Balbriggan Garda Station
The court heard Marry has three previous convictions, including a conviction for a drug-related matter.
The defence lawyer said Marry had difficulties in his teens and left school at just 13 years old.
The lawyer said Marry hasn't been in trouble for some time, is now in a relationship and that his partner gave birth to a child recently.
The court also heard the defendant's father died last year and Marry acts as a carer for his mother.