[Demonstration 1]

[Buggy Method]
public String getName() {
    return lastName + ", " + firstName;
}

[Buggy Hunk]
return lastName + ", " + firstName;

[Patch]
return lastName.get() + ", " + firstName.get();

[Demonstration 2]

[Buggy Method]
public static Map<String, Object> retrieveMapOfPersonAttributes(Node personNode, String ncPrefix, String jxdmPrefix) throws Exception {
    Map<String, Object> arrestee = new HashMap<String, Object>();
    String personFirstName = XmlUtils.xPathStringSearch(personNode, ncPrefix + ":PersonName/" + ncPrefix + ":PersonGivenName");
    if (StringUtils.isNotBlank(personFirstName)) {
        log.debug("Arrestee First Name: " + personFirstName);
        arrestee.put(IdentifierGenerationStrategy.FIRST_NAME_FIELD, personFirstName);
    }
    String personMiddleName = XmlUtils.xPathStringSearch(personNode, ncPrefix + ":PersonName/" + ncPrefix + ":PersonMiddleName");
    if (StringUtils.isNotBlank(personMiddleName)) {
        log.debug("Arrestee Middle Name: " + personMiddleName);
        arrestee.put(IdentifierGenerationStrategy.MIDDLE_NAME_FIELD, personMiddleName);
    }
    String personLastName = XmlUtils.xPathStringSearch(personNode, ncPrefix + ":PersonName/" + ncPrefix + ":PersonSurName");
    if (StringUtils.isNotBlank(personLastName)) {
        log.debug("Arrestee Last Name: " + personLastName);
        arrestee.put(IdentifierGenerationStrategy.LAST_NAME_FIELD, personLastName);
    }
    String personDateOfBirth = XmlUtils.xPathStringSearch(personNode, ncPrefix + ":PersonBirthDate/" + ncPrefix + ":Date");
    if (StringUtils.isNotBlank(personDateOfBirth)) {
        log.debug("Arrestee DOB: " + personDateOfBirth);
        arrestee.put(IdentifierGenerationStrategy.BIRTHDATE_FIELD, personDateOfBirth);
    }
    String personRace = XmlUtils.xPathStringSearch(personNode, jxdmPrefix + ":PersonRaceCode");
    if (StringUtils.isNotBlank(personRace)) {
        arrestee.put("personRace", personRace.trim());
    }
    String personSex = XmlUtils.xPathStringSearch(personNode, ncPrefix + ":PersonSexCode");
    if (StringUtils.isBlank(personSex)) {
        personSex = XmlUtils.xPathStringSearch(personNode, jxdmPrefix + ":PersonSexCode");
    }
    if (StringUtils.isNotBlank(personSex)) {
        log.debug("Arrestee Sex Code: " + personSex);
        arrestee.put(IdentifierGenerationStrategy.SEX_FIELD, personSex.trim());
    }
    String personBiometricID = XmlUtils.xPathStringSearch(personNode, jxdmPrefix + ":PersonAugmentation/" + jxdmPrefix + ":PersonStateFingerprintIdentification/" + ncPrefix + ":IdentificationID");
    if (StringUtils.isNotBlank(personBiometricID)) {
        log.debug("Arrestee SID: " + personBiometricID);
        arrestee.put("personBiometricID", personBiometricID);
    }
    return arrestee;
}

[Buggy Hunk]
if (StringUtils.isBlank(personSex))

[Patch]
if (StringUtils.isNotBlank(personSex))

[Demonstration 3]

[Buggy Method]
public static void main(String[] args) {
    System.out.println(show(3));
}

[Buggy Hunk]
System.out.println( show(3));

[Patch]
System.out.println(f(f(f(f(f(f(3)))))));