in src/main/java/org/apache/sling/rewriter/impl/RewriterResponse.java [148:158]
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type) {
if ( type == ContentHandler.class ) {
this.processor = this.getProcessor();
if ( this.processor != null ) {
@SuppressWarnings("unchecked")
final AdapterType object = (AdapterType)this.processor.getContentHandler();
return object;
}
}
return super.adaptTo(type);
}