System.out.println("args IS -------------'"  + args);
   synchronized void newSession(String sel,String[] args) {      Properties sesProps = new Properties();      String propFileName = null;      String session = args[0];      // Start loading properties      sesProps.put(SESSION_HOST,session);      if (isSpecified("-e",args))         sesProps.put(SESSION_TN_ENHANCED,"1");      if (isSpecified("-p",args)) {         sesProps.put(SESSION_HOST_PORT,getParm("-p",args));      }      if (isSpecified("-f",args))         propFileName = getParm("-f",args);      if (isSpecified("-cp",args))         sesProps.put(SESSION_CODE_PAGE ,getParm("-cp",args));      if (isSpecified("-gui",args))         sesProps.put(SESSION_USE_GUI,"1");      if (isSpecified("-132",args))         sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_27X132_STR);      else         sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_24X80_STR);      // are we to use a socks proxy      if (isSpecified("-usp",args)) {         // socks proxy host argument         if (isSpecified("-sph",args)) {            sesProps.put(SESSION_PROXY_HOST ,getParm("-sph",args));         }         // socks proxy port argument         if (isSpecified("-spp",args))            sesProps.put(SESSION_PROXY_PORT ,getParm("-spp",args));      }      // are we to use a ssl and if we are what type      if (isSpecified("-sslType",args)) {         sesProps.put(SSL_TYPE,getParm("-sslType",args));      }      System.out.println("args IS -------------'"  + args);            // check if device name is specified      if (isSpecified("-dn=hostname",args)){         String dnParam;         // use IP address as device name         try{            dnParam = InetAddress.getLocalHost().getHostName();          }          catch(UnknownHostException uhe){            dnParam = "UNKNOWN_HOST";          }      System.out.println("DNNAME IS -------------'" + dnParam);        sesProps.put(SESSION_DEVICE_NAME ,dnParam);      }      else if (isSpecified("-dn",args)){      System.out.println("Got param" + getParm("-dn",args));         sesProps.put(SESSION_DEVICE_NAME ,getParm("-dn",args));      }               Session s = manager.openSession(sesProps,propFileName,sel);      if (!frame1.isVisible()) {         splash.updateProgress(++step);         frame1.setVisible(true);         splash.setVisible(false);         frame1.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));      }      else {         if (isSpecified("-noembed",args)) {            splash.updateProgress(++step);            newView();            frame1.setVisible(true);            splash.setVisible(false);            frame1.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));         }      }      if (isSpecified("-t",args))         frame1.addSessionView(sel,s);      else         frame1.addSessionView(session,s);      s.connect();   }