/**
   * Create the ValueObject from the ims.core.configuration.domain.objects.ElectiveListConfiguration
   * object.
   *
   * @param map DomainObjectMap of DomainObjects to already created ValueObjects.
   * @param domainObject
   */
  public static ims.admin.vo.ElectiveListConfigForElectiveListDetailsVo create(
      DomainObjectMap map,
      ims.core.configuration.domain.objects.ElectiveListConfiguration domainObject) {
    if (null == domainObject) {
      return null;
    }
    // check if the domainObject already has a valueObject created for it
    ims.admin.vo.ElectiveListConfigForElectiveListDetailsVo valueObject =
        (ims.admin.vo.ElectiveListConfigForElectiveListDetailsVo)
            map.getValueObject(
                domainObject, ims.admin.vo.ElectiveListConfigForElectiveListDetailsVo.class);
    if (null == valueObject) {
      valueObject =
          new ims.admin.vo.ElectiveListConfigForElectiveListDetailsVo(
              domainObject.getId(), domainObject.getVersion());
      map.addValueObject(domainObject, valueObject);

      valueObject = insert(map, valueObject, domainObject);
    }
    return valueObject;
  }