if (sessionArgs != null && !sessionArgs[0].startsWith("-")) sel = sessionArgs[0]; else { sel = getDefaultSession(); }
   void startNewSession() {      int result = 2;      String sel = "";      if (sessionArgs != null && !sessionArgs[0].startsWith("-"))         sel = sessionArgs[0];      else {         sel = getDefaultSession();      }      Sessions sess = manager.getSessions();      if (sel != null && sess.getCount() == 0                  && sessions.containsKey(sel)){         sessionArgs = new String[NUM_PARMS];         parseArgs((String)sessions.getProperty(sel), sessionArgs);      }      if (sessionArgs == null  || sess.getCount() > 0               || sessions.containsKey("emul.showConnectDialog")) {         sel = getConnectSession();         if (sel != null) {            String selArgs = sessions.getProperty(sel);            sessionArgs = new String[NUM_PARMS];            parseArgs(selArgs, sessionArgs);            newSession(sel,sessionArgs);         }         else {            if (sess.getCount() == 0)               System.exit(0);         }      }      else {         newSession(sel,sessionArgs);      }   }