// Create a ContentHandler the Tee's the events to both a
// SAXEventRecorder and an XMLSerializer. The serializer will
// serialize the XDIME after any pipeline markup has been
// processed. The SAXEventRecorder will allow the SAX events
// for this post pipeline XDIME to be replayed into MCS later.
TeeContentHandler teeContentHandler = new TeeContentHandler(
recorder.getRecordingHandler(), serializer);
xdimeRequestProcessorHelper.
parseXDIME(requestContext, new StringCachedContent(xdime),
teeContentHandler);
// Return the post pipeline XDIME