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