protected HRUserTimeOff toUnwrappedModel(HRUserTimeOff hrUserTimeOff) {
    if (hrUserTimeOff instanceof HRUserTimeOffImpl) {
      return hrUserTimeOff;
    }

    HRUserTimeOffImpl hrUserTimeOffImpl = new HRUserTimeOffImpl();

    hrUserTimeOffImpl.setNew(hrUserTimeOff.isNew());
    hrUserTimeOffImpl.setPrimaryKey(hrUserTimeOff.getPrimaryKey());

    hrUserTimeOffImpl.setHrUserTimeOffId(hrUserTimeOff.getHrUserTimeOffId());
    hrUserTimeOffImpl.setGroupId(hrUserTimeOff.getGroupId());
    hrUserTimeOffImpl.setCompanyId(hrUserTimeOff.getCompanyId());
    hrUserTimeOffImpl.setUserId(hrUserTimeOff.getUserId());
    hrUserTimeOffImpl.setUserName(hrUserTimeOff.getUserName());
    hrUserTimeOffImpl.setCreateDate(hrUserTimeOff.getCreateDate());
    hrUserTimeOffImpl.setModifiedDate(hrUserTimeOff.getModifiedDate());
    hrUserTimeOffImpl.setHrTimeOffTypeId(hrUserTimeOff.getHrTimeOffTypeId());
    hrUserTimeOffImpl.setHrUserId(hrUserTimeOff.getHrUserId());
    hrUserTimeOffImpl.setYear(hrUserTimeOff.getYear());
    hrUserTimeOffImpl.setHoursAllowed(hrUserTimeOff.getHoursAllowed());
    hrUserTimeOffImpl.setHoursAccrued(hrUserTimeOff.getHoursAccrued());
    hrUserTimeOffImpl.setHoursCarriedOver(hrUserTimeOff.getHoursCarriedOver());
    hrUserTimeOffImpl.setHoursUsed(hrUserTimeOff.getHoursUsed());

    return hrUserTimeOffImpl;
  }