} else {
buffer.reset();
}
BufferedLoader loader = workArea.get(BufferedLoader.class);
if (loader == null || loader.capacity() < maxdoc) {
loader = new BufferedLoader(maxdoc, _maxItems, buffer);
workArea.put(loader);
} else {
loader.reset(maxdoc, _maxItems, buffer);
}