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

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