The judge in the Etan Patz murder trial on Friday issued an order of protection for Jose Ramos, the convicted pedophile once suspected of abducting the 6-year-old, who is being held as a potential witness in the Brooklyn House of Detention.

Frank Rothman, the lawyer for Ramos who requested the order from Manhattan Supreme Court Justice Maxwell Wiley, told reporters that his client was facing harassment in the general population because of the notoriety of the case.

advertisement | advertise on newsday

Ramos, who is serving a Pennsylvania prison sentence, was transferred to New York because lawyers for Pedro Hernandez, the New Jersey man charged with killing Etan in 1979, plan to try to incriminate Ramos as part of their defense, and subpoenaed him.

More storiesComplete coverage: Etan Patz case

The trial's fifth week of testimony ended Friday with further questioning of a defense psychiatrist who diagnosed Hernandez with a schizophrenia-type mental disorder. Hernandez confessed in 2012, but his lawyers say his belief he killed Etan is a fantasy.