code: public Object getObject()
          throws EFapsException
      {
          Object ret = null;
          if (this.valueSelect == null) {
              // if the fromSelect has data
              if (this.fromSelect.hasResult()) {
                  // and there are more than one id the current object must not be null
                  if (this.idList.size() > 1 && this.currentObject != null) {
                      ret = this.fromSelect.getMainOneSelect().getObject(this.currentObject);
                  // or if there is only one id the first objectvalue must not be null
                  } else if (this.idList.size() == 1 && this.objectList.get(0) != null) {
                      ret = this.fromSelect.getMainOneSelect().getObject(this.currentObject);
                  }
              }
          } else {
              // if the currentObject is not null it means that the values are
              // retrieved by iteration through the object list
              if (this.currentId != null) {
                  ret = this.valueSelect.getValue(this.currentObject);
              } else {
                  ret = this.valueSelect.getValue(this.objectList);
              }
          }
          return ret;
      }
docs: Method to get the Object for this OneSelect.
  @return  object for this OneSelect
  @throws EFapsException on error