int res = dlg.showOpenDialog(this);
if (res == JFileChooser.APPROVE_OPTION){
cfg.setLastOpenDialogPath(dlg.getCurrentDirectory());
try {
File servicesFile = dlg.getSelectedFile();
ServiceParser parser = new ServiceParser(servicesFile);
parser.uploadDoctorAction();
DirectoryLocator.getDirectory(DirectoryDoctorAction.class, true);
} catch (FileNotFoundException ex) {
MessageBox.showExceptionOnly(ex);
} catch (IOException ex) {
MessageBox.showExceptionOnly(ex);