ItemType item = new ItemType();
try {
List<GenericValue> attrs = delegator.findByAnd("EbayProductListingAttribute", UtilMisc.toMap("productListingId", attribute.getString("productListingId")));
AmountType amount = new AmountType();
AmountType shippingServiceCost = new AmountType();
PictureDetailsType picture = new PictureDetailsType();
CategoryType category = new CategoryType();
ListingDesignerType designer = new ListingDesignerType();
ShippingDetailsType shippingDetail = new ShippingDetailsType();
ShippingServiceOptionsType shippingOption = new ShippingServiceOptionsType();
for (int index = 0; index < attrs.size(); index++) {
if ("Title".equals(attrs.get(index).getString("attrName"))) {
item.setTitle(attrs.get(index).getString("attrValue"));
} else if ("SKU".equals(attrs.get(index).getString("attrName"))) {
item.setSKU(attrs.get(index).getString("attrValue"));
} else if ("Currency".equals(attrs.get(index).getString("attrName"))) {
amount.setCurrencyID(CurrencyCodeType.valueOf(attrs.get(index).getString("attrValue")));
} else if ("Description".equals(attrs.get(index).getString("attrName"))) {
item.setDescription(attrs.get(index).getString("attrValue"));
} else if ("ApplicationData".equals(attrs.get(index).getString("attrName"))) {
item.setApplicationData(attrs.get(index).getString("attrValue"));
} else if ("Country".equals(attrs.get(index).getString("attrName"))) {
item.setCountry(CountryCodeType.valueOf(attrs.get(index).getString("attrValue")));
} else if ("PictureURL".equals(attrs.get(index).getString("attrName"))) {
String[] pictureUrl = {attrs.get(index).getString("attrValue")};
picture.setPictureURL(pictureUrl);
} else if ("Site".equals(attrs.get(index).getString("attrName"))) {
item.setSite(SiteCodeType.valueOf(attrs.get(index).getString("attrValue")));
} else if ("UseTaxTable".equals(attrs.get(index).getString("attrName"))) {
item.setUseTaxTable(Boolean.valueOf(attrs.get(index).getString("attrValue")));
} else if ("BestOfferEnabled".equals(attrs.get(index).getString("attrName"))) {