}
private void pushElement(final XDIMEElement element)
throws Exception {
XDIMEElementImpl elementImpl = (XDIMEElementImpl) element;
// Normally the ElementOutputStateBuilder would be configured when
// processing the element, but because this element isn't processed we
// need to manually set the context and create the output state.
elementImpl.getOutputState();
DocumentValidator validator = xdimeContext.getDocumentValidator();
validator.open(elementImpl.getElementType());
xdimeContext.pushElement(element);
}