String sellerMessage = (String) context.get("sellerMessage");
String recipientBidderUserID = (String) context.get("recipientBidderUserId");
try {
ApiContext apiContext = EbayStoreHelper.getApiContext(productStoreId, locale, delegator);
AddSecondChanceItemCall api = new AddSecondChanceItemCall(apiContext);
SecondChanceOfferDurationCodeType duration = SecondChanceOfferDurationCodeType.valueOf(durationString);
api.setDuration(duration);
AmountType buyItNowPrice = new AmountType();
if (UtilValidate.isNotEmpty((String) context.get("buyItNowPrice"))) {
buyItNowPrice.setValue(Double.parseDouble((String) context.get("buyItNowPrice")));
buyItNowPrice.setCurrencyID(CurrencyCodeType.USD);