protected void paintItem(PaintTarget target, Object itemId)
throws PaintException {
final String key = itemIdMapper.key(itemId);
final String caption = getItemCaption(itemId);
final Resource icon = getItemIcon(itemId);
if (icon != null) {
target.addAttribute("icon", icon);
}
target.addAttribute("caption", caption);
if (itemId != null && itemId.equals(getNullSelectionItemId())) {