ByteArrayOutputStream out = new ByteArrayOutputStream();
try {
Fop fop = ApacheFopWorker.createFopInstance(out, contentType);
ApacheFopWorker.transform(src, null, fop);
} catch (Exception e) {
<BUG>throw createException("Unable to transform FO file", e, request, response);

}</BUG>
response.setContentType(contentType);
response.setContentLength(out.size());

ByteArrayOutputStream out = new ByteArrayOutputStream();
try {
Fop fop = ApacheFopWorker.createFopInstance(out, contentType);
ApacheFopWorker.transform(src, null, fop);
} catch (Exception e) {
renderError("Unable to transform FO file", e, request, response);
return;
}
response.setContentType(contentType);
response.setContentLength(out.size());
