settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator);
   private void checkLegacy() {      // we check if the sessions file already exists in the directory      // if it does exist we are working with an old install so we      // need to set the settings directory to the users directory      // SESSIONS is declared as a string, so we just can use the keyword here.      if(ses.exists()) {          int cfc;          cfc = JOptionPane.showConfirmDialog(null,           "Dear User,\n\n" +          "Seems you are using an old version of tn5250j.\n" +          "In meanwhile the application became multi-user capable,\n" +          "which means ALL the config- and settings-files are\n" +          "placed in your home-dir to avoid further problems in\n" +          "the near future.\n\n" +          "You have the choice to choose if you want the files\n" +          "to be copied or not, please make your choice !\n\n" +          "Shall we copy the files to the new location ?",          "Old install detected", JOptionPane.WARNING_MESSAGE,          JOptionPane.YES_NO_OPTION);          if (cfc == 0) {               settings.setProperty("emulator.settingsDirectory",                System.getProperty("user.home") + File.separator + ".tn5250j"                 + File.separator);               // Here we do a checkdir so we know the destination-dir exists               checkDirs();               copyConfigs(SESSIONS);               copyConfigs(MACROS);               copyConfigs(KEYMAP);          }          else {              JOptionPane.showMessageDialog(null,               "Dear User,\n\n" +              "You choosed not to copy the file.\n" +              "This means the program will end here.\n\n" +              "To use this NON-STANDARD behaviour start tn5250j\n" +              "with -Demulator.settingsDirectory=<settings-dir> \n" +              "as a parameter to avoid this question all the time.",              "Using NON-STANDARD behaviour", JOptionPane.WARNING_MESSAGE);              System.exit(0);          }      }      else {         settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j"  + File.separator);         System.out.println("User Home = " + System.getProperty("user.home"));      }   }