stereo

My old 87 Supra has a Maxxima original equipment stereo. I want to upgrade but I'm obviously not going to find a wiring harness/plug that matches the original. I can't find wiring diagrams of the old Maxxima stereos. The question to those of you who have upgraded is- How do you figure out the wiring for the new stereo?