public static FanArtServiceProxy RegisterFanArtServiceProxy(DeviceConnection connection)
    {
      CpService fanArtStub = connection.Device.FindServiceByServiceId(Consts.FANART_SERVICE_ID);

      if (fanArtStub == null)
        throw new NotSupportedException("FanArtService not supported by this UPnP device.");

      FanArtServiceProxy fanArtProxy = new FanArtServiceProxy(fanArtStub);
      return fanArtProxy;
    }
        public static FanArtServiceProxy RegisterFanArtServiceProxy(DeviceConnection connection)
        {
            CpService fanArtStub = connection.Device.FindServiceByServiceId(Consts.FANART_SERVICE_ID);

            if (fanArtStub == null)
            {
                throw new NotSupportedException("FanArtService not supported by this UPnP device.");
            }

            FanArtServiceProxy fanArtProxy = new FanArtServiceProxy(fanArtStub);

            return(fanArtProxy);
        }