class InMemoryParameterEntryBatchLoader implements ParameterEntryBatchLoader {

    @Override
    public Collection<ParameterEntry> nextBatch(int batchSize) {
        Set<ParameterEntry> entriesBatch = new HashSet<ParameterEntry>();
        for (int index = 0; index < batchSize && entryIterator.hasNext(); ++index) {
            entriesBatch.add(entryIterator.next());
        }
        return entriesBatch;
    }

      InMemoryParameterEntryBatchLoader(Parameter parameter);

}