personBean.setDocumentIdExpirationDate(person.getExpirationDateOfDocumentIdYearMonthDay());
personBean.setDocumentIdNumber(person.getDocumentIdNumber());
personBean.setIdDocumentType(person.getIdDocumentType());
personBean.setSocialSecurityNumber(person.getSocialSecurityNumber());
PendingPartyContactBean pendingPartyContactBean = new PendingPartyContactBean(person);
if (pendingPartyContactBean.getDefaultPhysicalAddress() != null) {
final PhysicalAddress physicalAddress = pendingPartyContactBean.getDefaultPhysicalAddress();
personBean.setAddress(physicalAddress.getAddress());
personBean.setArea(physicalAddress.getArea());
personBean.setAreaCode(physicalAddress.getAreaCode());
personBean.setAreaOfAreaCode(physicalAddress.getAreaOfAreaCode());
personBean.setParishOfResidence(physicalAddress.getParishOfResidence());
personBean.setDistrictSubdivisionOfResidence(physicalAddress.getDistrictSubdivisionOfResidence());
personBean.setDistrictOfResidence(physicalAddress.getDistrictOfResidence());
personBean.setCountryOfResidence(physicalAddress.getCountryOfResidence());
}
personBean.setPhone(pendingPartyContactBean.getDefaultPhone() != null ? pendingPartyContactBean.getDefaultPhone()
.getNumber() : null);
personBean.setMobile(pendingPartyContactBean.getDefaultMobilePhone() != null ? pendingPartyContactBean
.getDefaultMobilePhone().getNumber() : null);
if (pendingPartyContactBean.getDefaultEmailAddress() != null) {
personBean.setEmail(pendingPartyContactBean.getDefaultEmailAddress().getValue());
}
personBean.setEmailAvailable(person.getAvailableEmail());
personBean.setHomepageAvailable(person.getAvailableWebSite());