}
if (entity.getSentiment() != null) {
SentimentFS sentimentFS = new SentimentFS(cas);
sentimentFS.setScore(entity.getSentiment().getScore());
sentimentFS.setSentimentType(entity.getSentiment().getType());
sentimentFS.addToIndexes();
fs.setFeatureValue(type.getFeatureByBaseName("sentiment"), sentimentFS);
}
cas.addFsToIndexes(fs);
/* build annotations on this fs */
buildAnnotations(cas, fs);