@Override
    public ResponseWriter cloneWithWriter(Writer writer) {
        return new CspResponseWriter(getWrapped().cloneWithWriter(writer), this.cspState);
    }
Write javascript collected from event/URI handlers to a separate <code>script</code> block.
primefaces/src/main/java/org/primefaces/csp/CspResponseWriter.java