The High Court has ruled that anti-eviction activist Ben Gilroy's continued detention in prison over his failure to complete an 80-hour community service order is lawful.
Mr Gilroy had brought an inquiry under Article 40 of the Constitution claiming his detention at Dublin's Mountjoy Prison was unlawful and he should be released.
In a ruling this morning Mr Justice Max Barrett found against Mr Gilroy.
The Judge told Mr Gilroy that he was "sorry" for "the predicament" the applicant found himself in.
However, the Judge said that the court was "coerced as a matter of law to conclude that Mr Gilroy's detention at Mountjoy Prison" under the order challenged was "in accordance with the law."
The Judge then revoked Mr Gilroy's bail, which was granted when the inquiry began earlier this month and ordered that the former election candidate be returned to Mountjoy Prison to serve the remainder of the three-month prison term.
There was a crowd of approximately 40 supporters and friends of Mr Gilroy in Court 2 of the Four Courts when the decision was delivered.
Several of those present voiced their disapproval at the ruling.
In his action, Mr Gilroy, assisted by businessman Jerry Beades, had claimed that the order upon which he was detained was flawed on several grounds.
The grounds included that the order did not mention that Mr Gilroy was to be detained by the Governor of Mountjoy Prison, that the order had been wrongly endorsed by the garda that brought him to Mountjoy, and that the order named the wrong plaintiff.
The State, represented by Remy Farrell SC and Tony McGillicuddy Bl, had opposed the application and rejected arguments Mr Gilroy's detention was unlawful or that order was flawed.
In his judgment, the Judge said none of the points raised could be deems as flaws that would render Mr Gilroy's detention fatally flawed, invalid or unlawful.
Mr Gilroy was jailed last month by Mr Justice Brian McGovern for three months over a failure to comply with a court order to complete 80 hours community service after he had admitted criminal contempt.
Mr Justice McGovern found there was a "deliberate and conscious" breach by Mr Gilroy of the October 2017 community service order, arising from Mr Gilroy's admission earlier in 2017, of criminal contempt.
The contempt related to Mr Gilroy having, in a sworn statement in proceedings by Allied Irish Banks plc seeking to enforce a €3.2m judgment against another man, accused the court of "criminal intimidation and threats" and compared the action of a court to that of "a thief putting a gun to his head and robbing him of his wallet".
The court, after being informed that Mr Gilroy had not performed the 80 hours community service, ordered that Mr Gilroy, with an address in Navan, Co Meath, be detained at Mountjoy Prison.