public static String getFlexGridClass(boolean flex) {
        return flex ? "grid" : "ui-g";
    }
Get grid or flex main container grid 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