public static AssetPowerPort AssetPowerPort(this PduPort port)
 {
     return(port.PowerConnection?.Ports.Single(o => o is AssetPowerPort) as AssetPowerPort);
 }
 public static Guid?AssetPowerPortId(this PduPort port)
 {
     return(port.AssetPowerPort()
            ?.Id);
 }