/** * Checks whether a transformation result has been set and, if not, * retrieves the result tree being built by the document builder. */ private void retrieveResult() { if (result == null) { this.setResult(((DocumentBuilder)this.getHandler()).getResult()); } }