How to use UpnpService for service discovery requiring special USER_AGENT header?

I intend to use the built-in Upnp service for discovering the services from a SkyQ receiver for my SkyQ binding.

Looking at the Samsumg TV binding as example, I understand that the starting point would be a call like upnpService.getRegistry().getDevices().

The issue is that for getting the service information via the description files (e.g. http://192.168.178.2:49153/description1.xml, the SkyQ receiver requires a properly set USER_AGENT header (has to start with SKY). Otherwise a 401 error is thrown.

Is there any way to set a header for the UpnpService or does any other alternative solution exist?

I’ve looked into various binding implementations and the code of the jupnp repo without getting any idea of how a solution might look like.