in src/main/java/org/apache/sling/rewriter/impl/RewriterResponse.java [88:119]
public PrintWriter getWriter() throws IOException {
if ( this.processor != null && this.writer == null ) {
return new PrintWriter(new Writer() {
@Override
public void close() throws IOException {
// nothing to do
}
@Override
public void flush() throws IOException {
// nothing to do
}
@Override
public void write(char[] cbuf, int off, int len)
throws IOException {
// nothing to do
}
});
}
if (writer == null) {
this.processor = this.getProcessor();
if ( this.processor != null ) {
this.writer = this.processor.getWriter();
}
if ( this.writer == null ) {
this.writer = super.getWriter();
}
}
return writer;
}