final DOMOutputBuffer buffer = (DOMOutputBuffer) preBufferStack.pop();
// close the pre tag
closePre(buffer, attributes);
// closePre removed any additional output buffers from the stack, so
// <code>buffer</code> must be the next
pageContext.popOutputBuffer(buffer);
// add the content buffer to the current output buffer
final DOMOutputBuffer parentBuffer =
(DOMOutputBuffer) pageContext.getCurrentOutputBuffer();
parentBuffer.addOutputBuffer(buffer);
}