Parameter synEnv = messageContext.getConfigurationContext()
.getAxisConfiguration().getParameter(SynapseConstants.SYNAPSE_ENV);
DataHandler dataHandler;
if (synEnv != null && synEnv.getValue() != null) {
dataHandler = new DataHandler(new SynapseBinaryDataSource(
inputStream, contentType, (SynapseEnvironment) synEnv.getValue()));
} else {
// add Hessian data inside a data handler
dataHandler = new DataHandler(
new SynapseBinaryDataSource(inputStream,contentType));
}
OMText textData = factory.createOMText(dataHandler, true);
element.addChild(textData);
} catch (IOException e) {