if (UtilValidate.isNotEmpty(countryGeo)) {
String country = postalAddress.getRelatedOne("CountryGeo").getString("geoName");
address.setCountry(country);
address.setWork(true); // this can be better set by checking contactMechPurposeTypeId
}
contact.addAddress(address);
Communications communication = cmf.createCommunications();
contact.setCommunications(communication);
PhoneNumber number = cmf.createPhoneNumber();