@Override
    public void doWithBuffer(final int minCapacity, final Consumer<ByteBuffer> work) {
        try (final PooledByteBuffer buffer = getPooledBufferByMinCapacity(minCapacity)) {
            work.accept(buffer.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