Tammy L. Felbaum (pictured) was arrested on Monday after threatening to shoot a judge at a Pennsylvania court house

A transgender woman who served jail time for killing her sixth husband in a botched castration found herself arrested again this week.

Tammy L. Felbaum, 58, was detained after threatening to shoot a judge at the Westmoreland County, Pennsylvania Courthouse Monday morning.

Authorities say Felbaum was going through security when she made a comment that she 'had guns and an Uzi and a rocket launcher' in her purse, which she sent through the X-ray scanner.

As she walked through another scanner, she allegedly told a cop that she 'came here to shoot a judge'.

Police proceeded to search Felbaum, but didn't find any weapons.

She later said that she was only kidding about shooting the judge, but nonetheless she was arrested on charges of making terroristic threats and disorderly conduct.

This isn't the first time that Felbaum has found herself on the wrong side of the law.

In February 2001, Felbaum reportedly conducted a botched castration of her husband James, 40, in their mobile home in Marion Township.

Scroll down for video

CCTV footage shows the moment Felbaum (right) went through security and made her threatening comments to officers

James, her sixth husband, died a day or two later, after choking on his own vomit while overdosing on pain medication he took for the unlawful surgery.

A state trooper who interviewed Felbaum after the incident said she told him that she had argued with her husband after he returned from a drug rehab clinic recently and that she thought he was cheating on her.

At the trial in December 2001, Felbaum maintained her innocence, saying her husband castrated himself.

But the judge found her responsible, convicting her of involuntary manslaughter, aggravated assault, recklessly endangering another person and unauthorized practice of medicine. She was sentenced to 5.5 to 11 years in prison.

Felbaum (right, in an photo from that time) was previously incarcerated for killing her husband James (left) in a botched castration in 2001

Felbaum has maintained her innocence, saying her husband castrated himself and died of a accidental drug overdose a few days later. Above, the trailer their shared, where the castration took place

After she was released from prison, Felbaum continued to say she was not to blame.

'My husband died from complications of a drug overdose, not complications of any surgery. I did not kill my husband. ... It’s a minor surgery,' she told Chanel 11, adding that she helped castrate her first husband.

Felbaum was born male and her birth name was Thomas Wyda. She underwent a sex change operation in 1980 after self-castrating herself. Records show she petitioned to change her name in August 1978.

Felbaum was due in court for a civil hearing on Monday, related to a complaint by the township sanitary authority. Sanitation claimed that she failed to connect her home to sanitary sewer lines, as is required.

Her next hearing for making threats at the courthouse will be on February 23. She is being held on $100,000 bail.