try {
Object fileacc = ((XMultiServiceFactory)tParam.getMSF()).createInstance("com.sun.star.comp.ucb.SimpleFileAccess");
simpleAccess = (XSimpleFileAccess)
UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc);
log.println("Going to parse: "+filename);
xStream = simpleAccess.openFileRead(filename);
} catch (com.sun.star.uno.Exception e) {
}
XActiveDataSink xSink = (XActiveDataSink) UnoRuntime.queryInterface(XActiveDataSink.class, oObj);
xSink.setInputStream(xStream);