@Test
public void getLast() throws JIException {
System.out.println("==== GET LAST ====");
OCInformationRegisterCollection collection = app.getInformationRegisterCollection();
OCInformationRegisterManager manager = collection.getInformationRegister("ВстречныйВыпускПродукцииУслуг");
OCStructure struct = manager.getLast(null, null);
for (OCKeyAndValue kav : struct) {
System.out.println(kav.getKey() + " = " + kav.getValue());
}
struct = manager.getFirst(null, null);
for (OCKeyAndValue kav : struct) {
System.out.println(kav.getKey() + " = " + kav.getValue());
}
}