code: public List lookupAgentsWithTimeout(int pTimeout) throws IOException {
          DiscoveryOutgoingMessage out =
                  new DiscoveryOutgoingMessage.Builder(QUERY)
                          .agentId(agentId)
                          .build();
          List<DiscoveryIncomingMessage> discovered = MulticastUtil.sendQueryAndCollectAnswers(out, pTimeout, logHandler);
          JSONArray ret = new JSONArray();
          for (DiscoveryIncomingMessage in : discovered) {
              ret.add(in.getAgentDetails().toJSONObject());
          }
          return ret;
      }
docs: {@inheritDoc}