RelistItemCall relistItemCall = new RelistItemCall(apiContext);
ItemType itemToBeRelisted = new ItemType();
GenericValue product = (GenericValue) itemsToRelist.get(itemRelist);
itemToBeRelisted.setItemID(product.getString("productId"));
relistItemCall.setItemToBeRelisted(itemToBeRelisted);
relistItemCall.relistItem();
GenericValue productStore = delegator.findByPrimaryKey("Product", UtilMisc.toMap("productId", product.getString("productId")));
productStore.set("isVirtual", "Y");
productStore.store();
Debug.logInfo("Relisted Item - " + product.getString("productId"), module);
}