DFARelationFinder relf = DFARelationFinder.getInstance();
List<Lattice> lattices = Lattice.buildLattices(procDoc, safDoc.getRootElement());
for(Lattice lattice : lattices) {
TokenSequence tokSeq = lattice.tokSeq;
List<Token> tokens = tokSeq.getTokens();
List<List<Token>> sentences = SentenceSplitter.makeSentences(tokens);
Set<String> existingRelations = new HashSet<String>();
for(List<Token> sentence : sentences) {
List<Relation> relations = relf.getRelations(sentence, "", lattice, null);
if(relations.size() > 0) {