Carrying a map of the 53-year-old singer's home, Matlok broke in through the balcony and stole a can of Red Bull from Madonna's garage. (Matlok denied any burglary, claiming he had bought the can from a shop.)

Matlok was caught by Madonna's friend, film director NathanRissman, who was renting the adjoining home. (Madonna, 53, and her four children were in the United States at the time.)

"He was arrested then dealt with under the mental health act and deported back to Poland for treatment," Chopra said during the hearing. "However, he has returned and set out a very clear plan of these offenses and given very clear instructions that he would continue if released."

Matlock is currently remanded in custody while he awaits sentencing on October 10.