use of org.eol.globi.taxon.EOLService in project eol-globi-data by jhpoelen.
the class EOLTaxonImageService method lookupImage.
private TaxonImage lookupImage(String externalId) throws PropertyEnricherException {
TaxonImage image;
Map<String, String> enrich = new EOLService().enrich(TaxonUtil.taxonToMap(new TaxonImpl(null, externalId)));
Taxon taxon = TaxonUtil.mapToTaxon(enrich);
image = taxonToTaxonImage(taxon);
return image;
}
Aggregations