2002 Kia Optima wiring diagram

My son replaced a cam sensor in a Kia Optima 2.4 cyl and while doing it, the plug on the harness broke, being that heat and age made it very fragile. He got another plug, but cant tell which wire belonged where to be able to patch it to the harness. I got a wiring diagram of how to test the harness from the Kia site, but it shows no colors for the wires on it.