again = new FileInputStream(System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator + settingsFile);
again = new FileInputStream(settingsDirectory() + settingsFile);
   private void loadSettings() {       FileInputStream in = null;       FileInputStream again = null;       settings = new Properties();       // here we will check for a system property is provided first.       if (System.getProperties().containsKey("emulator.settingsDirectory")) {           settings.setProperty("emulator.settingsDirectory",           System.getProperty("emulator.settingsDirectory") +           File.separator);           checkDirs();       }       else {           try {               in = new FileInputStream(settingsFile);               settings.load(in);           }           catch (FileNotFoundException fnfe) {               try {                   again = new FileInputStream(System.getProperty("user.home")                    + File.separator + ".tn5250j" + File.separator                    + settingsFile);                    settings.load(again);                }               catch (FileNotFoundException fnfea) {                   System.out.println(" Information Message: "                    + fnfea.getMessage() + ".  The file " + settingsFile                    + " will be created for first time use.");                   checkLegacy();                   saveSettings();               }               catch (IOException ioea) {                   System.out.println("IO Exception accessing File "                    + settingsFile + " for the following reason : "                   + ioea.getMessage());               }               catch (SecurityException sea) {                   System.out.println("Security Exception for file "                    + settingsFile + "  This file can not be "                   + "accessed because : " + sea.getMessage());               }           }           catch (IOException ioe) {               System.out.println("IO Exception accessing File "                + settingsFile + " for the following reason : "               + ioe.getMessage());           }           catch (SecurityException se) {               System.out.println("Security Exception for file "                + settingsFile + "  This file can not be "               + "accessed because : " + se.getMessage());           }       }    }