public String buildBehavior(ClientBehaviorRenderingMode mode) {
        addFragmentConfig();

        if (mode == ClientBehaviorRenderingMode.UNOBSTRUSIVE) {
            buffer.append("},ext);");
        }
        else if (mode == ClientBehaviorRenderingMode.OBSTRUSIVE) {
            buffer.append("});");
        }

        if (preventDefault) {
            buffer.append("return false;");
        }

        String request = buffer.toString();

        reset();

        return request;
    }
Passes parameters to the ajax request. If the first argument is a plain object, it will be converted to an array of name-value pairs.
Otherwise, the argument will be passed as-is.

@return The current instance of AjaxRequestBuilder
primefaces/src/main/java/org/primefaces/util/AjaxRequestBuilder.java