static Map<String, Object> itemToColumns(ItemType item) {
Map<String, Object> cols = FastMap.newInstance();
cols.put("itemId", item.getItemID() != null ? item.getItemID() : "");
cols.put("title", item.getTitle() != null ? item.getTitle() : "");
SellingStatusType sst = item.getSellingStatus();
double currentPrice = 0;
int bidCount = 0;
double reservPrice = 0;
if (UtilValidate.isNotEmpty(sst)) {
AmountType amt = sst.getCurrentPrice();
currentPrice = amt != null ? (new Double(amt.getValue())) : 0;
bidCount = sst.getBidCount() != null ? sst.getBidCount() : 0;
}
cols.put("buyItNowPrice", item.getBuyItNowPrice().getValue());
cols.put("currentPrice", currentPrice);
cols.put("bidCount", bidCount);