UnoRuntime.queryInterface(XContentProvider.class, xContentIdentifierFactory);
// create a content identifier from the ucb for tdoc
XContentIdentifier xContentIdentifier =
xContentIdentifierFactory.createContentIdentifier("vnd.sun.star.tdoc:/1");
// get content
XContent xContent = xContentProvider.queryContent(xContentIdentifier);
// actual test: commands to get some properties
XCommandProcessor xCommandProcessor = UnoRuntime.queryInterface(XCommandProcessor.class, xContent);
// build up the command
Command command = new Command();