Baltimore City police Detective Adam Lewellen is accused of perjury and misconduct stemming from a raid he led last year on the home of David Esteppe in Canton. Police forced their way into the home using a search warrant sought by Lewellen and signed by a judge.

Inside, according to court documents, police took a shotgun, a rifle and a digital scale, claiming there were traces of suspected cocaine on it. Police then filed four criminal charges against Esteppe -- two related to drugs, two for illegal gun possession.

Esteppe was taken to Central Booking, where he had to post bail to get out. Three weeks later, he was indicted when prosecutors took the case against him to a grand jury, but now, Lewellen is accused of lying to get the warrant to pull off the raid.

The suspected cocaine on the scale police took turned out to be nothing suspicious after being tested, according to sources.

Prosecutors dropped all charges against Esteppe and are now going after Lewellen for perjury and misconduct.

In December, Lewellen ran afoul of a Baltimore County judge for what he did in a domestic dispute with his ex-girlfriend -- all while awaiting trial on the perjury charges -- and he continued to get paid for desk work in the Baltimore City Police Department.

According to court records, Lewellen convinced a judge to issue a court order allowing him access to the apartment he once lived in with his ex-girlfriend. He testified in court that he changed his driver's license to reflect that address as his home in September.

But the Motor Vehicle Administration record presented in court showed he didn't actually change the address until December, a few days before seeking the court order from the judge.

The judge had allowed Lewellen to get into the apartment to get a few personal things. In a hearing shortly after that, the ex-girlfriend told a different story, saying Lewellen spent hours in the apartment cleaning her out.

Ex-girlfriend: "He was in my apartment for four hours ... He filled up a pickup truck and a van ... I'm missing jewelry, everything down to my underwear. Crazy stuff, expensive stuff."

The judge, District Court Judge Norman Stone, called Lewellen's actions outrageous, saying, "He knew what the order said and he's in law enforcement and he understands that, and he took advantage of this situation to clean out (his ex-girlfriend) and that reflects on his credibility."

The judge zeroed in on Lewellen's background as a police officer.

"We have somebody who is sophisticated in the system, and I think he used it," Stone said. "It's pretty clear to me he knew how to set it up -- all these dominoes -- for they would drop in a particular order."

The judge denied any further relief to Lewellen and instead granted his ex-girlfriend a protective order for a full year. He expressed concern about her safety.

"I think (Lewellen's ex-girlfriend) has plenty of reason to be afraid, and I am convinced by clear and convincing evidence she does," Stone said.

The ex-girlfriend is a witness in the perjury case against Lewellen. In court, she said he told her he had planted evidence and framed multiple people to put them in jail. Lewellen has pleaded not guilty in the perjury and misconduct case.

Lewellen has pleaded not guilty in the two other cases against him -- drunken driving and in the domestic case in which he was charged with felony theft.

On Wednesday, the police commissioner changed Lewellen's status: He's still suspended but now without pay. When asked why Lewellen was still getting paid, a Police Department representative said the felony charge had slipped through the cracks.