public Annotation intactToMitab(uk.ac.ebi.intact.model.Annotation intactAnnotation){ if (intactAnnotation != null && intactAnnotation.getCvTopic() != null){ String topic = CvTopic.COMMENT; if (intactAnnotation.getCvTopic().getShortLabel() != null){ topic = intactAnnotation.getCvTopic().getShortLabel(); } if (!topicsToExclude.contains(topic)){ Annotation annot = new AnnotationImpl(topic); annot.setText(intactAnnotation.getAnnotationText()); return annot; } } return null; } }