@Override
    public void doWithBufferPair(final int minKeyCapacity,
                                 final int minValueCapacity,
                                 final BiConsumer<ByteBuffer, ByteBuffer> work) {
        try (final PooledByteBuffer keyBuffer = getPooledBufferByMinCapacity(minKeyCapacity);
                final PooledByteBuffer valueBuffer = getPooledBufferByMinCapacity(minValueCapacity)) {
            work.accept(keyBuffer.getByteBuffer(), valueBuffer.getByteBuffer());
        }
    }
@param n The number to test
@return True if n is a power of ten, e.g. if n==10
stroom-bytebuffer/src/main/java/stroom/bytebuffer/impl6/ByteBufferPoolImpl6.java