private void returnBuffer(ByteBuffer buf){
  if (buf != null) {
    buf.clear();
    bufferPool.add(buf);
  }
}

private void returnBuffer ( ByteBuffer buf ) { if ( buf != null ) { buf . clear ( ) ; bufferPool . add ( buf ) ; } }
returns direct buffer to pool .
