Three men who carried out an attempted armed robbery on a bookmaker on the day of the Irish Grand National last year have been jailed for 21 years.
Noel Boylan, 32, from Fortlawn Park in Blanchardstown, and 31-year-old Gerard Claxton, of Bramblefield Park in Clonee, received eight years each.
Thirty-one-year-old Anthony Lea, of Fortlawn Avenue in Blanchardstown, was jailed for five years.
All three pleaded guilty last year.
The court heard that a detective superintendent received confidential information about a planned robbery of bookie John Carty and launched a surveillance operation.
Mr Carty was working at Fairyhouse racecourse when he was told of the plot.
He put €10,000 in takings into a bag and drove back to his office at Deansgrange with Detective Garda Donal Tully in the back.
The three men and a fourth who has yet to be dealt with by the courts used a stolen Mercedes car and parked nearby.
Claxton had a handgun and Boylan a stun gun.
They demanded money from Mr Carty who was in fear of his life.
The detective jumped out of the car and eventually had to tackle Claxton to the ground to get the gun off him.
Anthony Lea, meanwhile, remained in the stolen Mercedes.
Today, Judge Michael White, in handing down 21 years in total, described it as a premeditated, serious crime which required careful planning.