try{
Object xCfgMgrObj=xMSF.createInstance("com.sun.star.config.SpecialConfigManager");
XConfigManager xCfgMgr = (XConfigManager) UnoRuntime.queryInterface(
XConfigManager.class , xCfgMgrObj );
String PathString=xCfgMgr.substituteVariables("$(progurl)" );
PathString= PathString.concat("/");
Object xPipeObj=xMSF.createInstance("com.sun.star.io.Pipe");
xInStream = (XInputStream) UnoRuntime.queryInterface(
XInputStream.class , xPipeObj );
xOutStream = (XOutputStream) UnoRuntime.queryInterface(