// add the relation to the CAS
BinaryTextRelation relation = null;
if ("affects".equals(this.annotation.type)) {
this.assertTypes(sourceMention, EventMention.class, targetMention, IdentifiedAnnotation.class);
relation = new AffectsTextRelation(jCas);
} else if ("complicates/disrupts".equals(this.annotation.type)) {
this.assertTypes(sourceMention, EventMention.class, targetMention, EventMention.class);
relation = new ComplicatesDisruptsTextRelation(jCas);
} else if ("degree_of".equals(this.annotation.type)) {
this.assertTypes(sourceMention, EventMention.class, targetMention, Modifier.class);