SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
query.setParameter("НачалоПериода", new OCVariant(sdf.parse("2009-01-01")));
query.setParameter("КонецПериода", new OCVariant(sdf.parse("2010-01-01")));
OCCatalogManager catMan = app.getCatalogManager("Организации");
OCCatalogSelection catSel = catMan.select();
catSel.next();
OCCatalogRef orgRef = catSel.getRef();
query.setParameter("Организация", new OCVariant(orgRef));
OCQueryResult result = query.execute();
OCValueTable table = result.unload();