class MongoDbRegionRepository implements RegionRepository {

    @Override
    public List<Region> getLimitedList(int offset, int pageSize){
        List<Region> regions = this.getAll();
        int end = regions.size() < offset + pageSize ? regions.size() : offset + pageSize;

        return regions.subList(offset, end);
    }

}