}
public static void main(String[] args) throws IOException, ConfigurationException, JIException {
OCApp app = getConnection();
OCCatalogManager manager = app.getCatalogManager("Банки");
OCCatalogRef ref = manager.findByDescription("Г МОСКВА");
OCCatalogSelection selection = manager.selectHierarchically(ref);
while (selection.next()) {
int level = selection.getLevelInSelection();
if (level==0) {
System.out.println(selection.getCode()+" "+selection.getDescription());