@Override
    public void send( ByteBuffer data )
    {   
        if( data == null ) {
            throw new IllegalArgumentException( "Data cannot be null." );
        }
        if( closing ) {
            throw new KernelException( "Endpoint has been closed:" + socket );
        }
        send( data, true, true );
    }
Called by the SelectorKernel when the top buffer
 has been exhausted.
jme3-networking/src/main/java/com/jme3/network/kernel/tcp/NioEndpoint.java