Tom's Golf, Jetta, and New Beetle Repairs and Info
Reassembly is reverse of removal. Plug the bulb into the electrical connector, place the bulb in the proper mounting location, lock the bulb bail in place, put the cover back on (tabs first), and finally lock the cover spring bail in place.
This is the most complex headlight replacement I've seen on a modern car. My experience is limited, but this operation has quite a lot of steps.