occur.setTextId(txtFile.getTextId());
} else {
continue;
}
occur.setProject(projectManager.getProjectDetails(txtFile.getProjectId()));
<BUG>List<TermType> terms = ((AppellationEventType) event).getTerms();

if (terms != null && terms.size() > 0) {
TermType term = terms.get(0);</BUG>
PrintedRepresentationType printed = term.getPrintedRepresentation();

occur.setTextId(txtFile.getTextId());
} else {
continue;
}
occur.setProject(projectManager.getProjectDetails(txtFile.getProjectId()));
TermType term = ((AppellationEventType) event).getTermType();
if (term != null) {
PrintedRepresentationType printed = term.getPrintedRepresentation();
