public ByteBuffer acquireNonDirectReceiveBuffer(int size) {
    ByteBuffer result = ByteBuffer.allocate(size);
    stats.incReceiverBufferSize(size, false);
    return result;
  }
try to acquire direct buffer, if enabled by configuration
geode-core/src/main/java/org/apache/geode/internal/net/BufferPool.java