}
responseWriter.startElement(SCRIPT, null);
responseWriter.writeAttribute(TYPE, TEXT_JAVASCRIPT, null);
for (Object script : scripts) {
ScriptUtils.writeToStream(responseWriter, script);
responseWriter.writeText("\n", null);
}
if (!pageReadyScripts.isEmpty()) {
responseWriter.writeText("RichFaces.jQuery(document).ready(function() {\n", null);
for (Object script : pageReadyScripts) {
ScriptUtils.writeToStream(responseWriter, script);