code: private EndpointDefinition convertSrvRecordToEndpointDefinition(final SrvRecord srvRecord) {
          return new EndpointDefinition(findServiceName(srvRecord.service()), srvRecord.target(),
                  srvRecord.port());
      }
docs: Convert a single srvRecord into an EndpointDefinition.
  
  @param srvRecord srvRecord
  @return EndpointDefinition from srvRecord