}
}
// by default, we create InternalSortedBag, unless user configures
// explicitly to use old bag
sortedBag = useDefaultBag ? BagFactory.getInstance().newSortedBag(mComparator)
: new InternalSortedBag(3, mComparator);
while (res.returnStatus != POStatus.STATUS_EOP) {
if (res.returnStatus == POStatus.STATUS_ERR) {
log.error("Error in reading from the inputs");
return res;