} else {
if (comp instanceof JList) {
JList list = (JList)comp;
value = list.isSelectedIndex(index);
} else if (comp instanceof ListField) {
ListField listField = (ListField) comp;
value = listField.getSelectedIndex() == index;
} else {
UnsupportedOperationException errorVar = new UnsupportedOperationException("getIndexValue() is not implemented");
ErrorMgr.addError(errorVar);
throw errorVar;
}