protected DataWriter getDataWriter(Message message, Class<?> output) {
Service service = ServiceModelUtil.getService(message.getExchange());
DataWriterFactory factory = service.getDataBinding().getDataWriterFactory();
setSchemaOutMessage(service, message);
DataWriter dataWriter = null;
for (Class<?> cls : factory.getSupportedFormats()) {
if (cls == output) {
dataWriter = factory.createWriter(output);
break;
}