public static KaleoDraftDefinitionSoap toSoapModel(KaleoDraftDefinition model) {
    KaleoDraftDefinitionSoap soapModel = new KaleoDraftDefinitionSoap();

    soapModel.setKaleoDraftDefinitionId(model.getKaleoDraftDefinitionId());
    soapModel.setGroupId(model.getGroupId());
    soapModel.setCompanyId(model.getCompanyId());
    soapModel.setUserId(model.getUserId());
    soapModel.setUserName(model.getUserName());
    soapModel.setCreateDate(model.getCreateDate());
    soapModel.setModifiedDate(model.getModifiedDate());
    soapModel.setName(model.getName());
    soapModel.setTitle(model.getTitle());
    soapModel.setContent(model.getContent());
    soapModel.setVersion(model.getVersion());
    soapModel.setDraftVersion(model.getDraftVersion());

    return soapModel;
  }
  /**
   * Converts the soap model instance into a normal model instance.
   *
   * @param soapModel the soap model instance to convert
   * @return the normal model instance
   */
  public static KaleoDraftDefinition toModel(KaleoDraftDefinitionSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    KaleoDraftDefinition model = new KaleoDraftDefinitionImpl();

    model.setKaleoDraftDefinitionId(soapModel.getKaleoDraftDefinitionId());
    model.setGroupId(soapModel.getGroupId());
    model.setCompanyId(soapModel.getCompanyId());
    model.setUserId(soapModel.getUserId());
    model.setUserName(soapModel.getUserName());
    model.setCreateDate(soapModel.getCreateDate());
    model.setModifiedDate(soapModel.getModifiedDate());
    model.setName(soapModel.getName());
    model.setTitle(soapModel.getTitle());
    model.setContent(soapModel.getContent());
    model.setVersion(soapModel.getVersion());
    model.setDraftVersion(soapModel.getDraftVersion());

    return model;
  }