code: public CrowdAgent getEditableAgent(int idx) {
          return idx < 0 || idx >= m_agents.length ? null : m_agents[idx];
      }
docs: / Agents in the pool may not be in use. Check #dtCrowdAgent.active before using the returned object.