setFirstCarMake(parkingPartyBean.getFirstCarPlateNumber());
setFirstCarMake(parkingPartyBean.getFirstCarMake());
    public void edit(ParkingPartyBean parkingPartyBean) {        if (parkingPartyBean.getDeleteFirstCar() && parkingPartyBean.getDeleteSecondCar()) {            throw new DomainException("error.parkingParty.no.cars");        }        if (!parkingPartyBean.getParkingParty().getHasSecondCar()                && parkingPartyBean.getDeleteFirstCar()) {            throw new DomainException("error.parkingParty.no.cars");        }        if (parkingPartyBean.getDeleteFirstCar()) {            moveSecondCarToFirstCar();            deleteSecondCar();        } else if (parkingPartyBean.getDeleteSecondCar()) {            deleteSecondCar();        }        if(!parkingPartyBean.getCardAlwaysValid() && parkingPartyBean.getCardStartDate().isAfter(parkingPartyBean.getCardEndDate())){            throw new DomainException("error.parkingParty.invalidPeriod");        }        setCardNumber(parkingPartyBean.getCardNumber());        setCardStartDate(parkingPartyBean.getCardStartDate());        setCardEndDate(parkingPartyBean.getCardEndDate());        setPhdNumber(parkingPartyBean.getPhdNumber());        setParkingGroup(parkingPartyBean.getParkingGroup());        setFirstCarPlateNumber(parkingPartyBean.getFirstCarPlateNumber());        setFirstCarMake(parkingPartyBean.getFirstCarPlateNumber());        setSecondCarPlateNumber(parkingPartyBean.getSecondCarPlateNumber());        setSecondCarMake(parkingPartyBean.getSecondCarMake());        if(getParty().isPerson()){            ((Person)getParty()).setEmail(parkingPartyBean.getEmail());        }    }