return org;
}
private static PostalAddress getPostalAddress(AddressLine[] addressLineArr) throws JAXRException {
PostalAddress pa = new PostalAddressImpl();
HashMap<String, String> hm = new HashMap<String, String>();
for (AddressLine anAddressLineArr : addressLineArr) {
hm.put(anAddressLineArr.getKeyName(), anAddressLineArr.getKeyValue());
}
if (hm.containsKey("STREET_NUMBER")) {
pa.setStreetNumber(hm.get("STREET_NUMBER"));
}
if (hm.containsKey("STREET")) {
pa.setStreet(hm.get("STREET"));
}
if (hm.containsKey("CITY")) {
pa.setCity(hm.get("CITY"));
}
if (hm.containsKey("COUNTRY")) {
pa.setCountry(hm.get("COUNTRY"));
}
if (hm.containsKey("POSTALCODE")) {
pa.setPostalCode(hm.get("POSTALCODE"));
}
if (hm.containsKey("STATE")) {
pa.setStateOrProvince(hm.get("STATE"));
}
return pa;
}