(SynapseEnvironment) synEnv.getValue()));
} else {
// add Hessian data inside a data handler
dataHandler = new DataHandler(new SynapseBinaryDataSource(pis, contentType));
}
OMText textData = factory.createOMText(dataHandler, true);
element.addChild(textData);
// indicate that message faults shall be handled as http 200
messageContext.setProperty(NhttpConstants.FAULTS_AS_HTTP_200, NhttpConstants.TRUE);