return res;
}
@SuppressWarnings("unchecked")
public CustomerFormDto getCustomerForForm(Integer customerKey){
Organization org = gatewayDao.getCustomer(customerKey);
if (org==null){
throw new IllegalArgumentException("Customer with id=" + customerKey +" not found.");
}
List<?> countries = getCountryList();
List<?> provinces = getProvinceListForCountry();
GeoClassificator ancestor = new GeoClassificator();
ancestor.setId(org.getAddress().getProvince().getId());
List<?> cities = getCityListForAncestor(ancestor);
List<?> contacts = getContactsList(extractKeys(org.getContacts()));
CustomerFormDto dto = new CustomerFormDto();
dto.setCities((List<GeoClassificator>) cities);
dto.setCountries((List<GeoClassificator>) countries);
dto.setProvincies((List<GeoClassificator>) provinces);