public void setMax(int max) {
        ensureNotFrozen();
        this.max=max;
    }
Returns max number of (immediate) elements/sections permissible within this, -1 means unrestricted. Default: -1.
container-search/src/main/java/com/yahoo/search/pagetemplates/model/Section.java