LOGGER.error("Country by ct code {} not found", ((AdminDivision) entity).getCountry().getCode());
} else {
((AdminDivision) entity).setCountry(ct);
}
} else if (entity instanceof City) {
AdminDivision adm = null;
City city = (City) entity;
if (city.getAdmDivision() != null && city.getAdmDivision().getCode() != null) {
adm = (AdminDivision) regionAdmDAO.findByAdmCode(((City) entity).getAdmDivision().getCode());
}
((City) entity).setAdmDivision(adm);