expectedDH = new DataHandler(dataSource);
OMText binaryNode = new OMTextImpl(expectedDH, true, fac);
envelope.addChild(body);
body.addChild(data);
data.addChild(binaryNode);
envelope.serializeAndConsume(new FileOutputStream(outBase64File), baseOutputFormat);
envelope.serializeAndConsume(new FileOutputStream(outMTOMFile), mtomOutputFormat);
}