* @return a SAX DefaultHandler for handling the SAX events.
* @throws FOPException if setting up the DefaultHandler fails
*/
public DefaultHandler getDefaultHandler() throws FOPException {
if (foTreeBuilder == null) {
this.foTreeBuilder = new FOTreeBuilder(outputFormat, foUserAgent, stream);
}
return this.foTreeBuilder;
}