Context context = new UploadRequestBatchResultContext(r);
logInfo(total, position, "processing uplaod request : ", r.getUuid());
r.updateStatus(UploadRequestStatus.STATUS_CLOSED);
r = uploadRequestService.updateRequest(account, r.getOwner(), r);
for (UploadRequestUrl u : r.getUploadRequestURLs()) {
<BUG>notifications.add(mailBuildingService.buildUploadRequestExpiryWarnRecipient((User) r.getOwner(), u));
}
notifications.add(mailBuildingService.buildUploadRequestExpiryWarnOwner((User) r.getOwner(), r));
notifierService.sendNotification(notifications);</BUG>
return context;

Context context = new UploadRequestBatchResultContext(r);
logInfo(total, position, "processing uplaod request : ", r.getUuid());
r.updateStatus(UploadRequestStatus.STATUS_CLOSED);
r = uploadRequestService.updateRequest(account, r.getOwner(), r);
for (UploadRequestUrl u : r.getUploadRequestURLs()) {
EmailContext ctx = new UploadRequestWarnExpiryEmailContext((User) r.getOwner(), r, u, false);
notifications.add(mailBuildingService.build(ctx));
