newPm.set("paymentMethodId", newPmId);
newPm.set("paymentMethodTypeId", "GIFT_CARD");
newGc.set("paymentMethodId", newPmId);
try {
delegator.storeAll(toBeStored);
} catch (GenericEntityException e) {
Debug.logWarning(e.getMessage(), module);
return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
"AccountingGiftCardCannotBeCreatedWriteFailure",
UtilMisc.toMap("errorString", e.getMessage()), locale));