e.printStackTrace(log);
throw new StatusException("Couldn't create instance", e);
}
// creating the pipe where object has to be written to
XActiveDataSource xdSo = (XActiveDataSource)
UnoRuntime.queryInterface(XActiveDataSource.class, ostream);
XActiveDataSource xdSmo = (XActiveDataSource)
UnoRuntime.queryInterface(XActiveDataSource.class, mostream);
XOutputStream moStream = (XOutputStream)
UnoRuntime.queryInterface(XOutputStream.class, mostream);
XActiveDataSink markIn = (XActiveDataSink)
UnoRuntime.queryInterface(XActiveDataSink.class, minstream);
XActiveDataSink inStream = (XActiveDataSink)
UnoRuntime.queryInterface(XActiveDataSink.class, istream);
XInputStream markInStream = (XInputStream)
UnoRuntime.queryInterface(XInputStream.class, minstream);
final XOutputStream PipeOut = (XOutputStream)
UnoRuntime.queryInterface(XOutputStream.class,aPipe);
final XInputStream PipeIn = (XInputStream)
UnoRuntime.queryInterface(XInputStream.class,aPipe);
markIn.setInputStream(PipeIn);
inStream.setInputStream(markInStream);
XObjectInputStream objInputStream = (XObjectInputStream)
UnoRuntime.queryInterface(XObjectInputStream.class, istream);
xdSo.setOutputStream(moStream);
xdSmo.setOutputStream(PipeOut);
oStream = (XObjectOutputStream)
UnoRuntime.queryInterface(XObjectOutputStream.class, ostream);
// creating Persistent object which has to be written