private void addTaxonToClassification(Classification classification, String classificationNamespace, long id, RedListGefaesspflanzenImportState state){
Taxon taxon = HibernateProxyHelper.deproxy(state.getRelatedObject(classificationNamespace, String.valueOf(id), TaxonBase.class), Taxon.class);
+ taxon.setSec(classification.getReference());
classification.addChildTaxon(taxon, null, null);
}
RedListUtil.logMessage(id, "Taxon for name "+name+" could not be created.", logger);
return;
}
- taxonBase.setSec(state.getConfig().getSourceReference());
//---CONCEPT RELATIONSHIPS---
/*check if taxon/synonym also exists in other classification
*/
private void cloneTaxon(TaxonBase<?> taxonBase, TaxonNameBase<?, ?> name, TaxonRelationshipType relationFromCloneToTaxon, Set<TaxonBase<?>> taxaToSave, long id, String sourceNameSpace, boolean reverseRelation, boolean doubtful, RedListGefaesspflanzenImportState state){
TaxonBase<?> clone = (TaxonBase<?>) taxonBase.clone();
- clone.setName(name);
if(taxonBase.isInstanceOf(Taxon.class)){
TaxonRelationship taxonRelation;
if(reverseRelation){