if(gedxPerson.getGender() != null) {
logger.warn(ConversionContext.getContext(), "Missing gender designation");
}
if(fact.getValue().equalsIgnoreCase("M")) {
gedxPerson.setGender(new Gender(GenderType.Male));
}
else if(fact.getValue().equalsIgnoreCase("F")) {
gedxPerson.setGender(new Gender(GenderType.Female));
}
else if(fact.getValue().equalsIgnoreCase("U")) {
gedxPerson.setGender(new Gender(GenderType.Unknown));
}
else {
logger.warn(ConversionContext.getContext(), "Unrecognized gender designation ({})", fact.getValue());
}
}