}
Item item = new Item();
item.setItemName(_request.getParameter(PARAM_ITEM_NAME + lineNum));
item.setItemDescription(_request
.getParameter(PARAM_ITEM_DESCRIPTION + lineNum));
UnitPrice price = new UnitPrice();
price.setContent(new BigDecimal(_request
.getParameter(PARAM_UNIT_PRICE + lineNum)));
if (_request.getParameter(PARAM_UNIT_PRICE + lineNum + PARAM_DOT_CURRENCY) != null) {
price.setCurrency(_request.getParameter(PARAM_UNIT_PRICE
+ lineNum + PARAM_DOT_CURRENCY));
} else {
price.setCurrency(USD);
}
item.setUnitPrice(price);
item.setQuantity(Integer.parseInt(_request.getParameter(PARAM_QUANTITY
+ lineNum)));
items.addItem(item);