}
private List<Location> locations(List<Map<String, String>> values) {
List<Location> retval = new ArrayList<Location>(values.size());
for (Map<String,String> val : values) {
Location loc = new Location();
loc.setId(Long.valueOf(val.get("LOCATION_ID")));
loc.setStreetAddress(val.get("STREET_ADDRESS"));
loc.setPostalCode(val.get("POSTAL_CODE"));
loc.setCity(val.get("CITY"));
loc.setStateprovince(val.get("STATE_PROVINCE"));
loc.setCountry(val.get("COUNTRY_ID"));
retval.add(loc);
}
return retval;
}