service-registry-examples/src/main/java/com/rackspacecloud/client/service_registry/examples/BarCuratorService.java
public static ServiceInstance<BarCuratorService> convert(Service svc) throws Exception {
        BarCuratorService bar = new BarCuratorService(svc.getMetadata().get("name"),
                                        svc.getMetadata().get("a"), 
                                        Integer.parseInt(svc.getMetadata().get("b")), 
                                        Float.parseFloat(svc.getMetadata().get("c")));
        return convert(bar);
    }
public static ServiceInstance<BarCuratorService> convert(Service svc) throws Exception {
        BarCuratorService bar = new BarCuratorService(svc.getMetadata().get("name"),
                                        svc.getMetadata().get("a"), 
                                        Integer.parseInt(svc.getMetadata().get("b")), 
                                        Float.parseFloat(svc.getMetadata().get("c")));
        return convert(bar);
    }
ServiceInstance<T> instances required by the Curator interfaces.