/** * Delegates processing of input data and input parameters to a * {@link Transmogrifier} object. The transmogrification result is written * to body of the message returned by * {@link org.openehealth.ipf.platform.camel.core.util.Exchanges#prepareResult(Exchange)}. * * @param exchange * message exchange where to write processing results. * @param inputData * input data. * @param inputParams * input parameters. * @throws Exception * if a processing error occurs. */ @Override protected void doProcess(Exchange exchange, Object inputData, Object... inputParams) throws Exception { prepareResult(exchange).setBody(transmogrifier.zap(inputData, inputParams)); }