LOWER SOUTHAMPTON, Pa. (WPVI) -- A Bucks County judge and two law enforcement officers are facing serious charges after police say they were caught in a money laundering scheme.

Judge John Waltman, Lower Southampton Director of Public Safety Robert Hoopes, and constable Bernard Rafferty are accused of laundering $400,000 in cash.

The trio was snared in federal sting involving the IRS, FBI, and Homeland Security.

According to the criminal complaint, undercover officers and a cooperating witness confronted the men about cleaning proceeds from drug trafficking and health insurance fraud. They are accused of three money laundering transactions for fees totaling $80,000 in cash.

"What the undercovers did is bring cash to the defendants, and in return the defendants gave the undercovers a check for the money and fake invoices to make it look like the defendants were actually performing work for the undercovers," said First Asst. U.S. Attorney Louis Lappen.

The U.S. Attorney's Office says Rafferty had a consulting company called Raff Consulting. The men allegedly laundered the money through his business account at Philadelphia Federal Credit Union.