facesContext.setResponseWriter(responseWriter);
responseWriter.startDocument();
responseWriter.startElement("span", input);
compositeRenderer.encodeAttributeParameters(facesContext, input);
responseWriter.endElement("span");
responseWriter.endDocument();
responseWriter.flush();
String result = stringWriter.getBuffer().toString();