PersonName personName = new PersonName();
personName.setLang("en");
personName.setValue(data.getFirstName(true) + data.getLastName(true));
//Address lines for contact.
AddressLine addressLineOne = new AddressLine();
addressLineOne.setKeyName("street");
addressLineOne.setKeyValue("street");
addressLineOne.setValue(data.getStreet(false));
AddressLine addressLineTwo = new AddressLine();
addressLineTwo.setKeyName("town");
addressLineTwo.setKeyValue("town");
addressLineTwo.setValue(data.getTown(false));
AddressLine addressLineThree = new AddressLine();
addressLineThree.setKeyName("zip");
addressLineThree.setKeyValue("zip");
addressLineThree.setValue(data.getZip(5));
//One address for the contact. Can be more but only one here.
Address address = new Address();
address.setLang("en");
address.setSortCode("1");