code: @Override
      public String getItemValue()
      {
          String ret = null;
          try {
              if (this.autoComplete != null && this.autoComplete.getParent().isEditMode()
                              && !EditValue.NONE.equals(this.autoComplete.getAutoCompleteSetting().getValue4Edit())) {
                  final Instance instance = this.autoComplete.getInstance();
                  if (instance != null && instance.isValid()) {
                      switch (this.autoComplete.getAutoCompleteSetting().getValue4Edit()) {
                          case OID:
                              ret = instance.getOid();
                              break;
                          case ID:
                              ret = String.valueOf(instance.getId());
                              break;
                          default:
                              break;
                      }
                  }
              } else if (this.autoComplete != null
                              && (this.autoComplete.getParent().isEditMode()
                                              || this.autoComplete.getParent().isCreateMode())
                              && !this.autoComplete.getAutoCompleteSetting().isRequired()) {
                  ret = this.autoComplete.getAutoCompleteValue();
              }
          } catch (final EFapsException e) {
              AutoCompleteComboBox.LOG.error("Error in getItemValue()", e);
          }
          return ret;
      }
docs: {@inheritDoc}