code: public AgentOrder getAgentOrder(String agentId) {
          for (AgentOrder eachAgentOrder : this.agentOrders) {
              if (eachAgentOrder.getId().equals(agentId)) {
                  return eachAgentOrder;
              }
          }
  
          return null;
      }
docs: Retrieves an {@link AgentOrder} for the given <code>agentId</code> if this {@link AgentControllerOrder} contains such an order.
  
  @param agentId The ID of the {@link io.logspace.agent.api.Agent} to find a matching AgentOrder for.
  @return The first AgentOrder that matches the given <code>id</code> or <code>null</code> if no such AgentOrder exists.