UCP contacts Cisco SPA50X phones

Does anyone know of a way to populate the personal directory on Cisco SPA phones with the UCP contacts?

I figured this out. I found some code to generate a .xml file then rewrote the php script on the server that would generate a .xml file then plugged that information into the xml directory settings on the phone.