int index = indexString == null ? 0 : Integer.parseInt(indexString);
int index = 0; int hashCode = 0; if(indexString != null) { if(checkHashCodes(wocontext)) { int sep = indexString.indexOf("-"); if(sep > 0) { hashCode = Integer.parseInt(indexString.substring(sep+1)); index = Integer.parseInt(indexString.substring(0, sep)); } else { } } else { index = Integer.parseInt(indexString);  } }
    public WOActionResults invokeAction(WORequest worequest, WOContext wocontext) {        WOComponent wocomponent = wocontext.component();        Context context = createContext(wocomponent);                int count = _count(context, wocomponent);                WOActionResults woactionresults = null;        String indexString = _indexOfChosenItem(worequest, wocontext);        int index = indexString == null ? 0 : Integer.parseInt(indexString);        if(indexString != null) {            if (_item != null) {                Object object = context.objectAtIndex(index);                _item._setValueNoValidation(object, wocomponent);            }            if (_index != null) {                Integer integer = ERXConstant.integerForInt(index);                _index._setValueNoValidation(integer, wocomponent);            }            wocontext.appendElementIDComponent(indexString);            woactionresults = super.invokeAction(worequest, wocontext);            wocontext.deleteLastElementIDComponent();        } else {            int start = indexString == null ? 0 : index;            int end   = indexString == null ? count : (index + 1);                        for (int i = start; i < end && woactionresults == null; i++) {                _prepareForIterationWithIndex(context, i, wocontext, wocomponent);                woactionresults = super.invokeAction(worequest, wocontext);            }            if (count > 0) {                _cleanupAfterIteration(count, wocontext, wocomponent);            }        }        return woactionresults;    }