File selectedFile = fileChooser.getSelectedFile();
if (selectedFile != null) {
BatchManager.loadBatch(selectedFile);
BossanovaUserPref.putPref(BossanovaUserPref.BATCH_DIRECTORY, fileChooser.getSelectedFile().getParent());
// Bug 18267 Displaying current batch name
mainScreen.displayCurrentBatchName();
}
StateMachine.getInstance().transitionTo(StateMachine.MODEL_OPEN);
} catch (Exception e1) {
e1.printStackTrace();
PopupUtil.showError(mainScreen, HMIMessages.ERROR_GENERIC,