static void assignDataIfNull(Object selectItem) {
   UISelectItem uiSelectItem = (UISelectItem) selectItem;
   if (uiSelectItem.getItemValue() == null) {
     if (uiSelectItem.getItemLabel() != null) {
       uiSelectItem.setItemValue(uiSelectItem.getItemLabel());
     }
   }
   if (uiSelectItem.getItemLabel() == null) {
     if (uiSelectItem.getItemValue() != null) {
       uiSelectItem.setItemLabel(uiSelectItem.getItemValue().toString());
     }
   }
 }
 private static UISelectItem newUISelectItem(Object value) {
   UISelectItem item = new UISelectItem();
   item.setItemValue(value);
   item.setItemLabel(value.toString());
   return item;
 }