docs: public int addTask(Task task, Object remoteTask)
      {
          if (m_taskMain == null)
          {
              if (task != null)
                  if (task.isMainTaskCandidate())
                      m_taskMain = task;
          }
          m_mapTasks.put(task, (RemoteTask)remoteTask);
          return m_mapTasks.size();
      }