}
Boolean b = (Boolean)cid.getCopletData().getAttribute("basket-content");
if ( b != null && b.equals(Boolean.TRUE) ) {
Object item = new ContentItem(cid, true);
Event event = new AddItemEvent(store, item);
XMLUtils.createElement(contenthandler, elementName, service.getComponentManager().getLinkService().getLinkURI(event));
}
b = (Boolean)cid.getCopletData().getAttribute("basket-link");
if ( b != null && b.equals(Boolean.TRUE) ) {
Object item = new ContentItem(cid, false);
Event event = new AddItemEvent(store, item);
XMLUtils.createElement(contenthandler, elementName, service.getComponentManager().getLinkService().getLinkURI(event));
}
context.invokeNext( layout, service, contenthandler );
}