code: private List<EndpointDefinition> convertEndpoints(final List<SrvRecord> results) {
          return results.stream().map(this::convertSrvRecordToEndpointDefinition
          ).collect(Collectors.<EndpointDefinition>toList());
      }
docs: Converts list of SrvRecord(s) to list of EndpointDefinition(s).
  
  @param results of SrvRecord to convert to EndpointDefinition(s)
  @return list of EndpointDefinition