log.println("Cannot get the 'DefaultContext' for XMultiComponentFactory test.");
e.printStackTrace(log);
}
// register one controller, so it can be instantiated
XUIControllerRegistration xReg = (XUIControllerRegistration)
UnoRuntime.queryInterface(XUIControllerRegistration.class, xInst);
xReg.registerController(".uno:MyCommandUrl", "", "com.sun.star.comp.framework.FooterMenuController");
tEnv.addObjRelation("XUIControllerRegistration.RegisteredController", ".uno:MyCommandUrl");
tEnv.addObjRelation("XMultiComponentFactory.ServiceNames", new String[]{".uno:MyCommandUrl"});
return tEnv;
}