((XSelectionSupplier)UnoRuntime.queryInterface(
XSelectionSupplier.class,m_xFrame.getController()))
.addSelectionChangeListener(selectionChangeListener);
/* Get UI elements from frames layout manager */
XLayoutManager xLM = (XLayoutManager) ((Any)(((XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,m_xFrame)).getPropertyValue("LayoutManager"))).getObject();
for (com.sun.star.ui.XUIElement a:Arrays.asList(xLM.getElements())){
myLogger.log(
Level.FINEST, "UIElements " + Arrays.asList(
((XTypeProvider)UnoRuntime.queryInterface(
XTypeProvider.class,a.getRealInterface())).getTypes()));
XWindow2 xw2 = (XWindow2)UnoRuntime.queryInterface(