access = ( XSimpleFileAccess )
UnoRuntime.queryInterface( XSimpleFileAccess.class, xInterface );
Object storageObj = ( XInterface )xMSF.createInstanceWithArguments(
"drafts.com.sun.star.script.framework.storage.ScriptStorage",
new Object[]{ access, new Integer(99), docPath } );
XScriptInfoAccess infoAccess = ( XScriptInfoAccess )UnoRuntime.queryInterface(XScriptInfoAccess.class, storageObj);
XScriptInfo[] infos = infoAccess.getImplementations("script://MemoryUtils.MemUsage?location=document");
oObj = infos[0];
} catch (com.sun.star.uno.Exception e) {
throw new StatusException("Can't create object environment", e) ;
}