private XBrowseNode getRootNode(XScriptContext ctxt) {
XBrowseNode result = null;
XComponentContext xcc = ctxt.getComponentContext();
XBrowseNodeFactory xBrowseFac = (XBrowseNodeFactory)
UnoRuntime.queryInterface(
XBrowseNodeFactory.class, xcc.getValueByName(BROWSE_FACTORY));
result = (XBrowseNode)UnoRuntime.queryInterface(
XBrowseNode.class, xBrowseFac.createView(
BrowseNodeFactoryViewTypes.MACROSELECTOR ) );
return result;
}