UnknownContentOMDataSource unknownContentDataSource = new UnknownContentOMDataSource(
rootPartDataHandler);
OMFactory factory = OMAbstractFactory.getOMFactory();
messageContext.setDoingSwA(false);
messageContext.setDoingMTOM(false);
return new OMSourcedElementImpl(
UnknownContentOMDataSource.unknownContentQName, factory,
unknownContentDataSource);
}
InputStreamDataSource inStreamDataSource = new InputStreamDataSource(
inputStream);
inStreamDataSource.setType(contentType);
DataHandler dataHandler = new DataHandler(inStreamDataSource);
UnknownContentOMDataSource unknownContentDataSource = new UnknownContentOMDataSource(
dataHandler);
OMFactory factory = OMAbstractFactory.getOMFactory();
return new OMSourcedElementImpl(
UnknownContentOMDataSource.unknownContentQName, factory,
unknownContentDataSource);
}