if (orderItem != null) {
MerchantInfo mInfo = getMerchantInfo(delegator, getProductStoreFromOrder(order));
if (mInfo != null) {
String externalId = order.getString("externalId");
CancelItemsRequest cir = new CancelItemsRequest(mInfo, externalId, "Item Cancelled", ""); // TODO: configure the reason and comment
cir.addItem(orderItem.getString("productId"));
try {
cir.send();
} catch (CheckoutException e) {
Debug.logError(e, module);
}