@Override
    public void unregister(ServiceEndPoint endPoint) {
        checkState(!_closed);
        checkNotNull(endPoint);

        String path = makeEndPointPath(endPoint);
        PersistentEphemeralNode node = _nodes.remove(path);
        if (node != null) {
            closeNode(node);

            String serviceName = endPoint.getServiceName();
            _numRegisteredEndpoints.getUnchecked(serviceName).dec();
        }
    }
@ Override public void unregister ( ServiceEndPoint endPoint ) { checkState ( ! _closed ) ; checkNotNull ( endPoint ) ; String path = makeEndPointPath ( endPoint ) ; PersistentEphemeralNode node = _nodes . remove ( path ) ; if ( node != null ) { closeNode ( node ) ; String serviceName = endPoint . getServiceName ( ) ; _numRegisteredEndpoints . getUnchecked ( serviceName ) . dec ( ) ; } }
{@inheritDoc}