How was Cody Simpson found?

he was found on youtube by a big producer who messaged him on myspace telling him to have his parents call him. so he went to L.A with his dad & signed a record deal