if (household.getHouseholdID().getIDStr() != null) {
log.info("Searching for family members of household with id: " + household.getHouseholdID().getIDStr());
} else if (household.getHouseholdID().getIDNum() != null) {
log.info("Searching for family members of household with id: " + household.getHouseholdID().getIDNum());
}
Members householdMembers;
try {
householdMembers = household.getMembers();
if (householdMembers.getMember().isEmpty()) {
if (household.getHouseholdID().getIDStr() != null) {
log.info("No household members found within householdID/IDStr: " + household.getHouseholdID().getIDStr());
} else if (household.getHouseholdID().getIDNum() != null) {
log.info("No household members found within householdID/IDNum: " + household.getHouseholdID().getIDNum());
}
} else {
log.info("Number of household members found is: " + householdMembers.getMember().size());
}
for (Member member : householdMembers.getMember()) {
csv2Record[5] = String.valueOf(++householdMemberCounterCSV2);
//Get the family member's relationship to the head of household
String relationshipCodeCSV2;
try {