try {
XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF();
XPropertySet xProp = (XPropertySet)UnoRuntime.queryInterface(
XPropertySet.class, xMSF);
// get context
XComponentContext xContext = (XComponentContext)
UnoRuntime.queryInterface(XComponentContext.class,
xProp.getPropertyValue("DefaultContext"));
// get the type description manager
Object o = xContext.getValueByName("/singletons/" +
"com.sun.star.reflection.theTypeDescriptionManager");
// the manager contains all providers
XEnumerationAccess aProviderAccess = (XEnumerationAccess)
UnoRuntime.queryInterface(XEnumerationAccess.class, o);
// collect enumeration