public void reset() {
        lastElement = null;
        lastId = null;
        lastNonce = null;
        lastEvents = null;
    }
Write needed attributes before the starting element will be closed by adding a trailing '>' character when calling e.g.
{@link ResponseWriter#writeText}.
See {@link ResponseWriter#startElement(String, UIComponent)}
primefaces/src/main/java/org/primefaces/csp/CspResponseWriter.java