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

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