service-registry-examples/src/main/java/com/rackspacecloud/client/service_registry/examples/BarCuratorService.java
public static ServiceInstance<BarCuratorService> convert(BarCuratorService bar) throws Exception {
        ServiceInstanceBuilder<BarCuratorService> builder = ServiceInstance.builder();
        // these values are for the most part nonsensical.
        return builder.payload(bar)
            .uriSpec(new UriSpec("http://"))
            .sslPort(2400)
            .serviceType(ServiceType.STATIC)
            .port(2300)
            .address("127.0.0.1")
            .id(String.format("bar-%s-%d-%s", bar.a, bar.b, bar.c))
            .name(bar.name)
            .build();
    }
public static ServiceInstance<BarCuratorService> convert(BarCuratorService bar) throws Exception {
        ServiceInstanceBuilder<BarCuratorService> builder = ServiceInstance.builder();
        // these values are for the most part nonsensical.
        return builder.payload(bar)
            .uriSpec(new UriSpec("http://"))
            .sslPort(2400)
            .serviceType(ServiceType.STATIC)
            .port(2300)
            .address("127.0.0.1")
            .id(String.format("bar-%s-%d-%s", bar.a, bar.b, bar.c))
            .name(bar.name)
            .build();
    }
ServiceInstance<T> instances required by the Curator interfaces.