private static boolean isBufferTooLarge(ByteBuffer buf){
  return isBufferTooLarge(buf.capacity());
}

private static boolean isBufferTooLarge ( ByteBuffer buf ) { return isBufferTooLarge ( buf . capacity ( ) ) ; }
returns true if the buffer is too large to be added to the buffer cache , false otherwise .
