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