code: public static Map<String, Object> getTransportProperties(TransportsConfiguration transportsConfiguration) {
          Map<String, Object> transportProperties = new HashMap<>();
          Set<TransportProperty> transportPropertiesSet = transportsConfiguration.getTransportProperties();
          if (transportPropertiesSet != null && !transportPropertiesSet.isEmpty()) {
              transportProperties = transportPropertiesSet.stream().collect(
                      Collectors.toMap(TransportProperty::getName, TransportProperty::getValue));
  
          }
          return transportProperties;
      }
docs: Extract transport properties from transport configurations.
  
  @param transportsConfiguration transportsConfiguration {@link TransportsConfiguration} which transport
  properties should be extracted.
  @return Map of transport properties.