* ServiceRegistration and UPnPDevice reference to the hashtable
* that contains local devices
*/
if (prop == null && upnpDev == null) {
UPnPDeviceImpl newDevice = new UPnPDeviceImpl(dev, context);
ServiceRegistration registration =
context.registerService(UPnPDevice.class.getName(),
newDevice,
newDevice.getDescriptions(null));
OSGiDeviceInfo deviceInfo =
new OSGiDeviceInfo(newDevice,registration);
String udn = (String) ((newDevice.getDescriptions(null)).get(UPnPDevice.UDN));
devices.put(udn, deviceInfo);
} else {
ServiceRegistration registration =
context.registerService(UPnPDevice.class.getName(), upnpDev, prop);
OSGiDeviceInfo deviceInfo =
new OSGiDeviceInfo(upnpDev, registration);
devices.put(upnpDev.getDescriptions(null).get(UPnPDevice.UDN),deviceInfo);
}