Sample code for XenCenter