qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java
public boolean isServiceRegistered(final String serviceId) {
        Map<String, Service> serviceIdToService = getServices();
        return serviceIdToService.containsKey(serviceId);
    }
public boolean isServiceRegistered(final String serviceId) {
        Map<String, Service> serviceIdToService = getServices();
        return serviceIdToService.containsKey(serviceId);
    }
Checks to see if a service is registered with the local agent..

@param serviceId service id
@return <code>true</code> if a particular service is registered with
the local Consul agent, otherwise <code>false</code>.