List<Domicile> domicileList = new ArrayList<Domicile>(domicileListSize);
List<Visit> visitList = new ArrayList<Visit>(cityList.size() - domicileListSize);
int count = 0;
for (City city : cityList) {
if (count < domicileListSize) {
Domicile domicile = new Domicile();
domicile.setId(city.getId());
domicile.setCity(city);
domicileList.add(domicile);
} else {
Visit visit = new Visit();
visit.setId(city.getId());
visit.setCity(city);