}
@RequestMapping(value="/country.json", method=RequestMethod.GET)
public @ResponseBody CountryWithZones getCountriesAsJson(@RequestParam("countryId") Integer countryId,
HttpServletRequest request){
if(countryId==null || countryId==0) return new CountryWithZones();
CountryWithZones cwz = (CountryWithZones)countryAdminModel
.get(countryId, CountryWithZones.class);
if(cwz!=null){
List<Zone> zones = zoneAdminModel.getAllByCountryId(countryId);
cwz.setZones(zones);
}
return cwz;
}