private CollectedStuff[] reconstitute(Object[] records) { int totalRecords = records.length; CollectedStuff[] result = new CollectedStuff[totalRecords]; for (int i = 0; i < totalRecords; i++) { result[i] = descriptor.reconstitute(records[i]); } return result; }
private void insertIntoRepository(CollectedEvent event) { Object collectedStuffObject = descriptor.describe(event.source().id(), event.description(), event.timeStamp()); storage.save(collectedStuffObject, descriptor, descriptor); }