public Item createShoppingItem(String itemName, String itemDesc,
int quantity, float unitPrice, String currency,
String taxTableSelector, Element privateItemData)
throws ProtocolException {
Money money = createMoney(unitPrice, currency);
Item item = _objectFact.createItem();
item.setItemName(itemName);
item.setItemDescription(itemDesc);
item.setQuantity(quantity);
item.setUnitPrice(money);
if (taxTableSelector != null) {
item.setTaxTableSelector(taxTableSelector);
}
if (privateItemData != null) {
AnyType anyType = _objectFact.createAnyType();
anyType.setAny(privateItemData);
item.setMerchantPrivateItemData(anyType);
}
return item;
}