A man who had allegedly been stalking Jennifer Lopez decided to move into her New York mansion – while she was away.

Southampton police said Wednesday an intruder had been living for a week inside the pool house of the entertainer’s Water Mill mansion in the Hamptons.

According to Newsday, the Puerto Rican singer-actress had an order of protection against 49-year-old John Dubis of Rhode Island, but he somehow made it onto her property. Details on why Lopez got an order protection against him were not available Wednesday night.

Police said Dubis remained undetected until workers found him on the property Aug. 8 and called police.

He was arraigned the following day on charges of burglary, criminal contempt, stalking and possession of burglary tools. His next court day is Aug. 28.

Dubis is being held on $100,000, police said in a press release, and prosecutors ordered an exam to determine if he was “fit to proceed” on the criminal charges.

According to Newsday, Lopez’s publicist could not be reached for comment and it was unclear whether Dubis had an attorney.

Lopez bought the 3-acre Water Mill mansion in May for a reported $10 million.

Based on reporting by the Associated Press.

Follow us on twitter.com/foxnewslatino
Like us at facebook.com/foxnewslatino