CreateImportSpecParams importParams = new CreateImportSpecParamsImpl();
importParams.setDeploymentOption("");
importParams.setLocale("");
importParams.setEntityName(name);
NetworkMapping[] nets = {
new NetworkMappingImpl("Network 1", network.getMoRef()),
new NetworkMappingImpl("Network 2", network.getMoRef())
};
importParams.setNetworkMapping(nets);
importParams.setIpAllocationPolicy(IpAllocationPolicy.transientPolicy.toString());
importParams.setDiskProvisioning("thin");