TRENTON — A man who police say was found in a 6-year-old's bed by her father has agreed to stay in prison after it was determined he is not here in this country legally.

According to the Trentonian, Edgar Mendoza agreed to pretrial detention during a court hearing on Friday, just over two weeks after the incident. The story also said that while Mendoza was originally identified as being 32, he is likely either 27 or 28.

"Due to my situation here, the fact that I don't have my papers and the fact that I am facing those charges, I think I am going to have to be detained," Mendoza was quoted in the story as saying through an interpreter.

The Office of Immigration and Customs Enforcement had issued a detainer for Mendoza, police have said. The Mercer County Prosecutor's Office had sought to keep Mendoza incarcerated after his arrest.

As previously reported by New Jersey 101.5, authorities say the girl's father went to check on his 6-year-old daughter in her room last week and night discovered Mendoza in her bed.

Mendoza then jumped out window and ran when the father walked in, he said. Police searched the neighborhood and arrested Edgar Mendoza a short time later on Franklin Street.

Authorities say he sexually assaulted the girl.

Mendoza's case is reminiscent of another, this weekend: State Police say a man sneaked into a Sussex County home in the middle of the night and raped two young children in their bedroom. Craig Lassiter, 33, was captured several days later.

More From New Jersey 101.5

Previous reporting by Dan Alexander was used in this story

Contact reporter Adam Hochron at 609-359-5326 or Adam.Hochron@townsquaremedia.com

Sign up for the NJ1015.com Newsletter

Get the best of NJ1015.com delivered to your inbox every day.