OCDocumentObject documentObject = getRandomDocument("СчетНаОплатуПокупателю");
OCXMLDataType dt = app.getXMLTypeOf(documentObject);
System.out.println(dt.getTypeName());
OCXDTOFactory factory = app.getXDTOFactory();
OCXDTOPackageCollection pacCollection = factory.getPackages();
System.out.println("PACKAGES: --------------------------");
for (OCXDTOPackage package1 : pacCollection) {
System.out.println(package1.getNamespaceURI());
}