final Event saveEvent = new SaveBasketEvent();
XMLUtils.data(this.xmlConsumer, linkService.getLinkURI(saveEvent));
XMLUtils.endElement(this.xmlConsumer, "persist-url");
if ( basket.size() > 0 ) {
ProfileManager profileManager = service.getComponentManager().getProfileManager();
XMLUtils.startElement(this.xmlConsumer, "items");
for(int i=0; i<basket.size();i++) {
Object item = basket.getItem(i);
XMLUtils.startElement(this.xmlConsumer, "item");
XMLUtils.startElement(this.xmlConsumer, "id");
XMLUtils.data(this.xmlConsumer, item.toString());
XMLUtils.endElement(this.xmlConsumer, "id");
if ( item instanceof ContentItem ) {
ContentItem ci = (ContentItem)item;
Event e = new ShowItemEvent(item, profileManager.getPortalLayout(null, this.showLayoutId), this.showCopletId);
XMLUtils.startElement(this.xmlConsumer, "show-url");
XMLUtils.data(this.xmlConsumer, linkService.getLinkURI(e));
XMLUtils.endElement(this.xmlConsumer, "show-url");
if (ci.size() != -1 ) {
XMLUtils.startElement(this.xmlConsumer, "size");