Looks like possible 1.5 sdk bug in getting Org settings froma VDC.
Vdc vdc = Vdc.GetVdcByReference(client, template.GetVdcReference());
ReferenceType temp = vdc.GetOrgReference();
temp.href at this point is NULL, this should not be possible as it should have the reference information to the parent org for this VDC.