TransformerHandler handler = factory.newTransformerHandler( );
handler.getTransformer().setOutputProperty(OutputKeys.METHOD, format);
handler.getTransformer().setOutputProperty(OutputKeys.INDENT, "yes");
handler.getTransformer().setOutputProperty(OutputKeys.ENCODING, "UTF-8");
handler.setResult(new StreamResult(writer));
content = new ExpandedTitleContentHandler( handler );
}
catch ( TransformerConfigurationException e ) {
throw new WebApplicationException( e );
}