{
    if (commandList.isEmpty())
    {
      return Collections.EMPTY_LIST;
    }
    else if (resultIndex == LAST_COMMAND_ALL)
    {
      return commandList.get(commandList.size() - 1).getResult();
    }
    else if (resultIndex == MERGE_COMMAND_ALL)
    {
      return getMergedResultCollection();
    }
    else if (resultIndex < commandList.size())
    {
      return commandList.get(resultIndex).getResult();
    }
    else
    {
      return Collections.EMPTY_LIST;
    }
  }