/** Add Message Server to list that we need to notify on logout */
  public void addMessageServer(MessageServer newServer) {
    Iterator it = _msgServers.iterator();
    while (it.hasNext()) {
      MessageServer msgServer = (MessageServer) it.next();
      if (msgServer.getId() == newServer.getId()) return; // it's already in the list
    }

    /*
     *	Add new entry
     */
    _msgServers.add(newServer);
  }
  /**
   * Logout the user. Inform all message servers that we're saying goodbye. & release license lock
   */
  public void logout() {
    Iterator it = _msgServers.iterator();
    while (it.hasNext()) {
      MessageServer msgServer = (MessageServer) it.next();
      DataSource ds = msgServer.createImpl();

      ActionDobj actLogout = new ActionDobj(ActionDobj.AT_LOGOUT, "logout", ds.getName());
      try {
        actLogout.doActionQuery(ds, _sessionId, _user.getId());

      } catch (DataSourceException e) {
      }
    }
    LicenseManager.releaseLicenseLock(lockKey);
  }