concept.setOriginalEntityExternalId(annotation.getAddress());
FSArray ontologyConceptArray = annotation
.getOntologyConceptArr();
ConceptType conceptType = ConceptLookup
.lookupConceptType(ontologyConceptArray);
//logger.info(String.format("got concept type: %s", conceptType));
// now always generating a concept annotation whether or not the
// conceptType is null (previously, we only generated a concept
// annotation if the conceptType was not null)
if (conceptType != null)
{
concept.setConceptType(conceptType.toString());
}
concept.addToIndexes();
//logger.info("finished adding new Concept annotation. " + concept);