Shawn Johnson Shawn Johnson

A Florida man was found guilty of stalking Shawn Johnson on Friday and was later ruled to have been legally insane at the time of his arrest, according to The Associated Press.

Los Angeles Superior Court Judge Michael Pastor found Robert O'Ryan guilty of felony stalking, two misdemeanor concealed weapons violations and burglary charges. Pastor also ruled O'Ryan was legally insane when he was arrested, and he will likely serve his sentence in a state medical hospital.

Check out photos of Shawn Johnson

O'Ryan was apprehended in March 2009, when he jumped a fence at the Dancing with the Stars lot before being detained by security, police said. Court papers show police later found two loaded guns, duct tape, love letters and a map in O'Ryan's car.

The Olympic gold medalist, 18, testified on Thursday that she was scared of O'Ryan and that she considered quitting the show and moving back to Iowa. She went on to win her season of Dancing.

Shawn Johnson wants to keep dancing, but what about gymnastics?

Johnson was not present at Friday's hearing.

O'Ryan is due in court on July 13, when Pastor will consider the results of his mental evaluation.