@Override
    protected void onInitialize( HostedServiceManager s ) {
        this.rpcService = getService(RpcHostedService.class);
        if( rpcService == null ) {
            throw new RuntimeException("RmiHostedService requires RpcHostedService");
        }
    }
Removes any RMI hosting services associated with the specified
 connection.  Calls to getRmiRegistry() will return null for
 this connection.  
 This method is called automatically for all leaving connections if
 autohost is set to true.
jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiHostedService.java