// the ctakes syntax typesystem was modeled after cleartk -- as a result, the following methods borrow very liberally from
// org.cleartk.syntax.constituent.util.TreebankNodeUtility, which has a convert method for going from
// a "normal" tree to a cleartk/uima tree. This does the same, except goes to a ctakes/uima tree.
private static TopTreebankNode convert(org.cleartk.syntax.constituent.util.TopTreebankNode inTree, JCas jcas){
TopTreebankNode outTree = new TopTreebankNode(jcas, inTree.getTextBegin(), inTree.getTextEnd());
outTree.setTreebankParse(inTree.getTreebankParse());
convert(inTree, jcas, outTree, null);
initTerminalNodes(outTree, jcas);
outTree.addToIndexes();
return outTree;
}