@Override
    public void startHostingOnConnection( HostedConnection hc ) {
        if( log.isLoggable(Level.FINEST) ) {
            log.log(Level.FINEST, "startHostingOnConnection:{0}", hc);
        }
        hc.setAttribute(ATTRIBUTE_NAME, new RpcConnection(hc));
    }
Sets up RPC hosting services for the hosted connection allowing
 getRpcConnection() to return a valid RPC connection object.
 This method is called automatically for all new connections if
 autohost is set to true.
jme3-networking/src/main/java/com/jme3/network/service/rpc/RpcHostedService.java