System.out.println(ex.getMessage());
log.warn(ex.getMessage());
   public void actionPerformed(ActionEvent e) {      Session ses;      for (int x = 0; x < sessions.size(); x++) {         try {            ses = (Session)sessions.get(x);            if (ses.isConnected() && ses.isSendKeepAlive()) {               ses.getVT().sendHeartBeat();               System.out.println(" sent heartbeat to " +  ses.getSessionName());            }         }         catch (Exception ex) {            System.out.println(ex.getMessage());         }      }   }