/// <exception cref="Javax.Servlet.ServletException"/> public virtual void OutputPretty(PrintWriter @out, Annotation annotation) { try { Document input = XMLOutputter.AnnotationToDoc(annotation, pipeline); Nodes output = corenlpTransformer.Transform(input); for (int i = 0; i < output.Size(); i++) { @out.Print(output.Get(i).ToXML()); } } catch (Exception e) { throw; } catch (Exception e) { throw new ServletException(e); } }