code: public void parseToKAF(final KAFDocument kaf) throws IOException {
      final StringBuffer parsingDoc = getParse(kaf);
      try {
        kaf.addConstituencyFromParentheses(parsingDoc.toString());
      } catch (final Exception e) {
        e.printStackTrace();
      }
    }
docs: It takes a KAF document calls to getParse() and outputs the parse tree as
  KAF constituents elements.
  
  @param kaf
  document containing WF and Term elements
  @throws IOException
  if io error