private EndpointDefinition convertToServiceDefinition(final ServiceHealth serviceHealth) {
final String host = serviceHealth.getNode().getAddress();
final int port = serviceHealth.getService().getPort();
final String id = serviceHealth.getService().getId();
final String name = serviceHealth.getService().getService();
final List<String> tags = serviceHealth.getService().getTags();
final EndpointDefinition endpointDefinition =
new EndpointDefinition(HealthStatus.PASS, id, name, host, port, tags);
if (debug) logger.debug(sputs("convertToServiceDefinition \nserviceHealth",
serviceHealth, "\nserviceDefinition", endpointDefinition));
return endpointDefinition;
}