• BREAKING NEWS ABC shows live and on-demand -- Download the WATCH ABC app!

OTRC: Paris Hilton's 'stalker' James Rainford sentenced to jail after attack on her boyfriend, Cy Waits

Paris Hilton appears with her boyfriend Cy Waits after he is confronted by a man she calls a 'stalker' and just before they testify at burglary trial. / James Rainford is apprehended on April 27, 2011 after witnesses say he attacked Paris Hilton's boyfriend Cy Waits outside a courthouse in Van Nuys, California. The heiress and Waits had arrived to testify at a burglary trial.

A man who attacked Paris Hilton's boyfriend Cy Waits before they entered a courthouse to testify in a burglary trial was charged with one count of battery and sencented to jail.

James Rainford pled no contest to the count of battery on Thursday, and was sentenced to 120 days in jail for the battery assault, 90 days for violating the terms of the earlier probation and 17 additional days for failing to complete terms of the original probation, which adds up to 227 days to be served consecutively, with credit of 2 days of time served. In addition, Rainford has been ordered to stay away from Waits and will have 36 months of unsupervised probation. His original 200 yard stay away order from Paris Hilton's house, which remains in effect.

On Wednesday Rainford, who Hilton dubbed a "stalker" and "psycho intruder" appeared to show up out of the blue as the two walked outside alongside a swarm of reporters and grabbed Waits' by the neck from behind.

Hilton's bodyguard later tackled him (see EXCLUSIVE video) and led him away to turn him over to police. Rainford was arrested on suspicion of misdemeanor battery on a person and was held in police custody on $20,000 bail.

Rainford, 36, had in January pleaded no contest to civil assault after he was arrested for trying to contact Hilton at her home in the Hollywood Hills. He was sentenced to three years of probation.

"That other psycho intruder just punched Cy in the back of the head as we were walking into the court house. So scary!" Hilton Tweeted after the incident.

At the scene, she called Rainford a "stalker" and told reporters on the scene: "Oh my god, that is another intruder who came to my house on a bike. This guy just attacked my boyfriend."

As Rainford was being led away by the heiress' bodyguard, he was asked if he had tried to attack Hilton.

"No," said Rainford, who identified himself as "Jim Rainford." "I've already proposed to her and her dad already said 'Yes.' I wanted to her get her to sign my picture of me proposing to her."

When asked if he was okay, Waits said: "Yeah, I'm good."

Hilton and Waits had appeared at the Los Angeles area court to testify against Nathan Parada, who was arrested and charged with felony first degree burglary with a person present after security men spotted him wielding two knives outside her house on August 24, 2010.

Jury selection had wrapped up hours earlier for the burglary trial. Parada has pleaded not guilty and has no known prior link to the actress, who was inside her home with Waits at the time of the reported incident. If convicted, Parada could face up to six years in state prison. He has been behind bars since his arrest.

Los Angeles police said at the time that the man was arrested for battery after he passed by the security gate at Hilton's home and knocked on the door of her house. Like Rainford, Parada confronted security guards and tried to fight them off, they said.

"So Scary, just got woken up to a guy trying to break into my house holding 2 big knifes," Hilton wrote on her Twitter page the morning of the incident. "Cops are here arresting him."

(Copyright ©2018 OnTheRedCarpet.com. All Rights Reserved.)