throw new StatusException("Couldn't create instance", e) ;
}
// Creating construction :
// MarkableOutputStream -> Pipe -> MarkableInputStream
XActiveDataSource xdSmo = (XActiveDataSource)
UnoRuntime.queryInterface(XActiveDataSource.class, mostream);
final XOutputStream PipeOut = (XOutputStream)
UnoRuntime.queryInterface(XOutputStream.class,aPipe);
final XInputStream PipeIn = (XInputStream)
UnoRuntime.queryInterface(XInputStream.class,aPipe);
xdSmo.setOutputStream(PipeOut);
XActiveDataSink xmSi = (XActiveDataSink)
UnoRuntime.queryInterface(XActiveDataSink.class, mistream);
xmSi.setInputStream(PipeIn) ;