public void finish() throws IOException {
        ResponseWriter rw = context.getResponseWriter();
        rw.write("});");

        if (endFunction) {
            rw.write("});");
        }

        rw.endElement("script");
    }
This should only be used internally if the selector is directly used by jQuery on the client.
If PFS is used and specified by the user, {@link #attr(java.lang.String, java.lang.String)} should be used
as the users have to escape colons like @(myForm\:myId).

@param name of the attribute
@param value of the selector
@return the WidgetBuilder
@throws IOException if any error occurs
primefaces/src/main/java/org/primefaces/util/WidgetBuilder.java