public <S extends Service<T>> void removeService( S s ) {
        if( log.isLoggable(Level.FINE) ) {
            log.log(Level.FINE, "removeService({0})", s);
        }
        if( started ) {
            if( log.isLoggable(Level.FINE) ) {
                log.log(Level.FINE, "Stopping service:{0}", s);
            }
            s.stop();
        }
        services.remove(s);
        if( log.isLoggable(Level.FINE) ) {
            log.log(Level.FINE, "Terminating service:{0}", s);
        }
        s.terminate(getParent());        
    }
Removes the specified service from this service manager, stopping
 and terminating it as required.  If this service manager is in a
 started state then the service will be stopped.  After removal,
 the service will be terminated.
jme3-networking/src/main/java/com/jme3/network/service/ServiceManager.java