// just for nifty debugging :)
// handler.getTransformer().setOutputProperty(OutputKeys.INDENT,
// "yes");
createConfiguration(handler, fontRecords);
} catch (TransformerConfigurationException e) {
throw new ExportException("Failed to create FOP options", e);
} catch (SAXException e) {
throw new ExportException("Failed to create FOP options", e);
} catch (UnsupportedEncodingException e) {
throw new ExportException("Failed to create FOP options", e);
}
Options result;
try {
result = new Options(new ByteArrayInputStream(outputStream
.toByteArray()));
} catch (FOPException e) {
throw new ExportException("Failed to create FOP options", e);
}
return result;
}