selectItems.add((SelectItem)value);
} else if (uiSelectItem.getValue() == null) {
// No value binding specified, create a select item out of the properties
// of the UI component.
selectItems.add(new ExtendedSelectItem(uiSelectItem));
} else {
// A value binding was specified, but of a type we don't support.
throw new IllegalArgumentException(String.format(ERROR_UNKNOWN_SELECT_TYPE, value.getClass().toString()));
}