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