/**
   * 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 UserGroup toModel(UserGroupSoap soapModel) {
    UserGroup model = new UserGroupImpl();

    model.setUserGroupId(soapModel.getUserGroupId());
    model.setCompanyId(soapModel.getCompanyId());
    model.setParentUserGroupId(soapModel.getParentUserGroupId());
    model.setName(soapModel.getName());
    model.setDescription(soapModel.getDescription());
    model.setAddedByLDAPImport(soapModel.getAddedByLDAPImport());

    return model;
  }
  /**
   * 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 UserGroup toModel(UserGroupSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    UserGroup model = new UserGroupImpl();

    model.setUuid(soapModel.getUuid());
    model.setUserGroupId(soapModel.getUserGroupId());
    model.setCompanyId(soapModel.getCompanyId());
    model.setUserId(soapModel.getUserId());
    model.setUserName(soapModel.getUserName());
    model.setCreateDate(soapModel.getCreateDate());
    model.setModifiedDate(soapModel.getModifiedDate());
    model.setParentUserGroupId(soapModel.getParentUserGroupId());
    model.setName(soapModel.getName());
    model.setDescription(soapModel.getDescription());
    model.setAddedByLDAPImport(soapModel.getAddedByLDAPImport());

    return model;
  }