if(deviceType == LedTestDevice.DEVICE_TYPE){
// TODO workaround for duplicated device type
//device = new LedTestDevice(uniqueDeviceId);
device = new Led1Analog2Device(uniqueDeviceId);
} else if(deviceType == LedLamp1Device.DEVICE_TYPE){
device = new LedLamp1Device(uniqueDeviceId);
} else {
// Unknown device type
device = new Device(uniqueDeviceId, deviceType);
}
}