}
public void marshal(Exchange exchange, Object body, OutputStream stream) throws Exception {
IBindingFactory bindingFactory = createBindingFactory(body.getClass(), bindingName);
IMarshallingContext marshallingContext = bindingFactory.createMarshallingContext();
marshallingContext.marshalDocument(body, null, null, stream);
}
public Object unmarshal(Exchange exchange, InputStream stream) throws Exception {
ObjectHelper.notNull(getUnmarshallClass(), "unmarshallClass");
IBindingFactory bindingFactory = createBindingFactory(getUnmarshallClass(), bindingName);