OMFactory fac = OMAbstractFactory.getOMFactory();
OMSourcedElementImpl element =
new OMSourcedElementImpl(
BaseConstants.DEFAULT_TEXT_WRAPPER, fac, textFileDataSource);
element.serializeAndConsume(new FileOutputStream("/tmp/out.txt"));
element.serialize(System.out);
//element.serializeAndConsume(System.out);
}
}