Formulate an answer to this elaborate question: Tinker Bell and the Lost Treasure and Summer Wars were both animated films created in 2009; however, which one had a main character that originated from a play by J.M. Barrie?
Tinker Bell and the Lost Treasure