NEW YORK - A mechanic accused of helping steal Kirsten Dunst's $2,000 designer purse from a Manhattan hotel suite has been convicted of burglary in the 2007 theft.

Jurors heard from the "Spider-Man" star and fellow actor Simon Pegg during the trial.

James Jimenez also was convicted Friday of trespassing at the SoHo Grand Hotel during the filming of the comedy "How to Lose Friends & Alienate People."

The verdict ended a case that brought the actors to the witness stand -- twice. Jimenez was retried after his initial jury deadlocked on burglary charges, while convicting him of another trespass charge.

Jimenez said he just tagged along with a co-defendant he believed had permission to be in the hotel room. Actors were using it to relax between takes.