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

@param srvRecord srvRecord
@return EndpointDefinition from srvRecord
Convert a single srvRecord into an EndpointDefinition .