(XContentIdentifierFactory)UnoRuntime.queryInterface(
XContentIdentifierFactory.class, xMSF.createInstance(
"com.sun.star.ucb.UniversalContentBroker"));
// create a content identifier from the ucb for tdoc
XContentIdentifier xContentIdentifier =
xContentIdentifierFactory.createContentIdentifier("vnd.sun.star.tdoc:/1/Pictures/10000000000000640000004B9C743800.gif");
// get content
xContent = xContentProvider.queryContent(xContentIdentifier);
String content = xContent.getContentType();
log.println("#### Folder type: " + content);