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