chooser.addChoosableFileFilter(filter);
if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
DeviceImportAndExport importer = new DeviceImportAndExport();
DeviceIf device = importer.importDevice(mData, this, chooser.getSelectedFile());
if (device == null) {
ErrorHandler.handle(importer.getError(), importer.getException());
} else {
mData.getDevices().add(device);