public boolean saveCommandHistory(String history)
  {
    try
    {
      if ((history == null) || (this.alMyCommandHistory.contains(history.trim())))
      {
        return true;
      }

      if (this.alMyCommandHistory.size() < 10)
      {
        if ((history != null) && (history.length() > 150))
        {
          this.alMyCommandHistory.add(history.substring(0, 149));
        }
        else
        {
          this.alMyCommandHistory.add(history);
        }

        this.nextAvailSlotInHistory = (this.alMyCommandHistory.size() % 10);

        this.currentCommandHistoryIndex = this.alMyCommandHistory.size();
      }
      else
      {
        if ((history != null) && (history.length() > 150))
        {
          this.alMyCommandHistory.set(this.nextAvailSlotInHistory, history.substring(0, 149));
        }
        else
        {
          this.alMyCommandHistory.set(this.nextAvailSlotInHistory, history);
        }

        this.nextAvailSlotInHistory = (++this.nextAvailSlotInHistory % 10);

        this.currentCommandHistoryIndex = this.nextAvailSlotInHistory;
      }

      return true;
    }
    catch (Exception e)
    {
      Driver.eop("saveCommandHistory", this.strMyClassName, e, e.getLocalizedMessage(), false);
    }

    return false;
  }