public static String getColumnClass(boolean flex, int columns) {
        return flex ? getFlexColumnClass(columns) : getColumnClass(columns);
    }
Get grid or flex column Class.
@param flex is either flex or grid CSS
@return  either flex or grid CSS based on boolean
primefaces/src/main/java/org/primefaces/util/GridLayoutUtils.java