@Override
public void process(JCas jCas) throws AnalysisEngineProcessException {
for(TemporalLink link : JCasUtil.select(jCas, TemporalLink.class)){
BinaryTextRelation rel = new BinaryTextRelation(jCas);
RelationArgument arg1 = new RelationArgument(jCas);
Anchor source = link.getSource();
arg1.setArgument(new Annotation(jCas, source.getBegin(), source.getEnd()));
arg1.addToIndexes();
RelationArgument arg2 = new RelationArgument(jCas);
Anchor target = link.getTarget();
arg2.setArgument(new Annotation(jCas, target.getBegin(), target.getEnd()));
arg2.addToIndexes();
String cat = getMappedCategory(link.getRelationType());
if(cat.endsWith("-1")){
rel.setArg1(arg2);