keyResultArr = new Result[resultList.size()];
resultList.toArray(keyResultArr);
log.debug("After deleting Business. Obtained vector size:" + keyResultArr != null ? keyResultArr.length : 0);
for (int i = 0; keyResultArr != null && i < keyResultArr.length; i++) {
Result result = (Result) keyResultArr[i];
int errno = result.getErrno();
if (errno == 0) {
coll.addAll(keys);
}
else {
ErrInfo errinfo = result.getErrInfo();
DeleteException de = new DeleteException(errinfo.getErrCode() + ":" + errinfo.getValue());
bulk.setStatus(JAXRResponse.STATUS_FAILURE);
exceptions.add(de);
}
}