// if the vm does not contain any network connection sections and if the
// vapp contains a network configuration. we should add the vm to this
// vapp network
else {
if (vAppHasNetworkConfigured(vApp)) {
VAppNetworkConfiguration vAppNetworkConfiguration = getVAppNetworkConfig(vApp);
NetworkConnection networkConnection = NetworkConnection.builder()
.network(vAppNetworkConfiguration.getNetworkName())
.ipAddressAllocationMode(IpAddressAllocationMode.DHCP).build();
NetworkConnectionSection networkConnectionSection = NetworkConnectionSection.builder().info("networkInfo")
.primaryNetworkConnectionIndex(0).networkConnection(networkConnection).build();