code: private static VirtualNetworkAdapterType TryGetNetworkAdapterType(GuestOsDescriptor guestOsInfo) {
          String ethernetCardType = guestOsInfo.getRecommendedEthernetCard();
  
          if ((ethernetCardType == null || ethernetCardType.isEmpty()) &&
              (guestOsInfo.getSupportedEthernetCard() != null) &&
              ((guestOsInfo.getSupportedEthernetCard().length > 0))) {
              ethernetCardType = guestOsInfo.getSupportedEthernetCard()[0];
          }
          return GetNetworkAdapterTypeByApiType(ethernetCardType);
      }
docs: Returns VirtualEthernetCard type recommended for the selected GuestOs