else { label = item;
if (localizedLabel == null && value != null) { localizedLabel = LocalizationUtility.getLocalizedFieldName (clazz.getSimpleName() + "."  + value, clazz.getPackage().getName(), locale);
    public int doStartTag() throws JspException {        String labelProperty = getLabel();        String valueProperty = getValue();        InputOptionTag tag = new InputOptionTag();        tag.setParent(this);        tag.setPageContext(getPageContext());        tag.getAttributes().putAll(getAttributes());        try {            for (Object item : this.collection) {                Object label = null;                if (labelProperty != null) {                    label = OgnlUtil.getValue(labelProperty, item);                }                else {                    label = item;                }                Object value = null;                if (valueProperty != null) {                    value = OgnlUtil.getValue(valueProperty, item);                }                else {                    value = item;                }                tag.setLabel(label.toString());                tag.setValue(value);                tag.doStartTag();                tag.doInitBody();                tag.doAfterBody();                tag.doEndTag();            }        }        catch (OgnlException oe) {            throw new StripesJspException("A problem occurred generating an options-collection. " +                "Most likely either [" + labelProperty + "] or ["+ valueProperty + "] is not a " +                "valid property of the beans in the collection: " + this.collection);        }        return SKIP_BODY;    }