+ private String getIpniId(WfoContentExportState state, TaxonName name, boolean warnIfNotExists) {
+ Identifier ipniId = name.getIdentifier(IdentifierType.uuidIpniNameIdentifier);
+ if (ipniId == null && warnIfNotExists) {
+ String message = "No ipni-id given for name: " + name.getTitleCache()+"/"+ name.getUuid();
+ state.getResult().addWarning(message); //TODO 5 data location
+ }
+ return ipniId == null ? null : ipniId.getIdentifier();
+ }
+