public static <T> boolean getFlowCtrlStatusParamValue(T paramCntr, boolean required,
            EnableStatus defValue, StringBuilder sBuffer,
            ProcessResult result) {
        // check and get statusId field
        if (!WebParameterUtils.getIntParamValue(paramCntr, WebFieldDef.STATUSID, required,
                TBaseConstants.META_VALUE_UNDEFINED, 0, 1, sBuffer, result)) {
            return result.isSuccess();
        }
        int paramValue = (int) result.getRetData();
        if (paramValue == TBaseConstants.META_VALUE_UNDEFINED) {
            result.setSuccResult(defValue);
        } else {
            if (paramValue == 1) {
                result.setSuccResult(EnableStatus.STATUS_ENABLE);
            } else {
                result.setSuccResult(EnableStatus.STATUS_DISABLE);
            }
        }
        return result.isSuccess();
    }
Parse the parameter value from an object value to a Boolean value

@param paramCntr   parameter container object
@param required   a boolean value represent whether the parameter is must required
@param defValue   default value
@param sBuffer     string buffer
@param result     process result of parameter value
@return process result
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/common/utils/WebParameterUtils.java