morNetwork.setType("Network");
morNetwork.set_value("network-32");
ManagedObjectReference morOvf = cb.getServiceConnection3().getServiceContent().getOvfManager();
OvfCreateImportSpecParams importSpecParams = new OvfCreateImportSpecParams();
importSpecParams.setHostSystem(morHost);
importSpecParams.setLocale("US");
importSpecParams.setEntityName("winxpsp3-ovf-deployed");
importSpecParams.setDeploymentOption("");
importSpecParams.setDiskProvisioning("thin");
/*
OvfNetworkMapping networkMapping = new OvfNetworkMapping();
networkMapping.setName("VM Network");
networkMapping.setNetwork(morNetwork); // network);
importSpecParams.setNetworkMapping(new OvfNetworkMapping[] { networkMapping });
*/
importSpecParams.setPropertyMapping(null);
String ovfDescriptor = readOvfContent("C:\\research\\vmware\\winxpsp3-ovf\\winxpsp3-ovf.ovf");
OvfCreateImportSpecResult ovfImportResult = cb.getServiceConnection3().getService().createImportSpec(
morOvf, ovfDescriptor, morRp, morDs, importSpecParams);