broker.beginTransaction();
broker.store(new ObjectRepository.A());
broker.store(new ObjectRepository.B());
broker.store(new ObjectRepository.B1());
broker.store(new ObjectRepository.C());
broker.store(new ObjectRepository.D());
broker.commitTransaction();
long[] result = new long[5];
FieldDescriptor field = broker.getClassDescriptor(ObjectRepository.A.class).getAutoIncrementFields()[0];
result[0] = SequenceManagerHelper.getMaxForExtent(broker, field);
field = broker.getClassDescriptor(ObjectRepository.B.class).getAutoIncrementFields()[0];