int i = 0;
for (Object o : dict.items()) {
ProcessDictionaryItem item = (ProcessDictionaryItem) o;
component.addItem(item.getKey());
String itemKey = item.getKey().toString();
ProcessDictionaryItemValue val = item.getValueForDate(validForDate);
String message = getMessage((String) (val != null ? val.getValue() : item.getKey()));
component.setItemCaption(item.getKey(),message);
if (element instanceof AbstractSelectWidgetElement) {
AbstractSelectWidgetElement select = (AbstractSelectWidgetElement) element;
if (select.getDefaultSelect() != null && i == select.getDefaultSelect()) {
component.setValue(item.getKey());