result = corporateCustomerEntity;
}
if (source instanceof PersonalCustomer) {
PersonalCustomerEntity personalCustomerEntity = new PersonalCustomerEntity();
personalCustomerEntity.setId(source.getId());
personalCustomerEntity.setApartment(source.getApartment());
List<CarEntity> carEntities = DozerHelper.mapList(source.getCars(),
CarEntity.class);
personalCustomerEntity.setCars(carEntities);
personalCustomerEntity.setCity(source.getCity());
personalCustomerEntity.setCountry(source.getCountry());
personalCustomerEntity.setEmail(source.getEmail());
personalCustomerEntity.setHouse(source.getHouse());
personalCustomerEntity.setHousing(source.getHousing());
personalCustomerEntity.setName(source.getName());
personalCustomerEntity.setPassword(source.getPassword());
personalCustomerEntity.setPatronymic(source.getPatronymic());
personalCustomerEntity.setPhone(source.getPhone());
personalCustomerEntity.setProvince(source.getProvince());
personalCustomerEntity.setRole(source.getRole());
personalCustomerEntity.setStreet(source.getStreet());
personalCustomerEntity.setSurname(source.getSurname());
personalCustomerEntity.setZip(source.getZip());
personalCustomerEntity.setBirthdate(((PersonalCustomer) source)
.getBirthdate());
personalCustomerEntity.setPassportRegNo(((PersonalCustomer) source)
.getPassportRegNo());
result = personalCustomerEntity;
}