XTransientDocumentsDocumentContentFactory xTransientDocumentsDocumentContentFactory =
(XTransientDocumentsDocumentContentFactory)UnoRuntime.queryInterface(
XTransientDocumentsDocumentContentFactory.class, o);
// get the model from the opened document
XModel xModel = xTextDoc.getCurrentController().getModel();
// a little additional check for 114733
XDocumentSubStorageSupplier xDocumentSubStorageSupplier = (XDocumentSubStorageSupplier)
UnoRuntime.queryInterface(XDocumentSubStorageSupplier.class, xModel);
String[]names = xDocumentSubStorageSupplier.getDocumentSubStoragesNames();