public CSVBuilder command(String command) {
        buffer.append("})){").append(command).append("}");

        return this;
    }
Helper to generate javascript code of a client side validation*
primefaces/src/main/java/org/primefaces/util/CSVBuilder.java