/** * look for the <ContactPerson> and within that the SurName. * * @param contactType the type of contact to look for * @return An appropriate string or null */ @Nullable public String getContactSurName(@Nullable final String contactType) { final ContactPerson contact = getContactPerson(getContactType(contactType)); if (null == contact || null == contact.getSurName()) { return null; } return contact.getSurName().getName(); }
return buildURL(emailAddress, contactName); final SurName surName = contact.getSurName(); final GivenName givenName = contact.getGivenName(); final StringBuilder fullName = new StringBuilder();