private boolean selectDevice() throws IOException {
boolean deviceSelected = false;
List<Device> devices = UserFacade.getInstance().getDevices();
if ((devices != null) && !devices.isEmpty()) {
Options devicesOpt = new Options(context);
Device choice =
devicesOpt.show("Select a device", devices, DeviceLabelizer.INSTANCE);
String device = choice.getName();
UserFacade.getInstance().selectDevice(device);
println("device=" + device);
deviceSelected = true;